日期:2014-05-17 浏览次数:20894 次
string path = @"E:\33\2323\test\Demo\"; path = Regex.Match(path,@".*?(?=[^\\]+?\\$)").Value; //E:\\33\\2323\\test\\
------解决方案--------------------
var dir = new System.IO.DirectotyInfo(@"E:\33\2323\test\Demo\"); var dirp = dir.ToString();