private static string getLast2Path(string path)
{
string[] paths = path.Split('\\');//拆分成数组
string retst = string.Empty;
//如果数组长度大于2,那么返回最后两位
if (paths.Length >= 2)
{
retst = paths[paths.Length - 2] + "\\" + paths[paths.Length - 1];
}
//否则返回全路径
else
{
retst = path;
}
return retst;
}