日期:2014-05-18 浏览次数:21084 次
string s = "C:\\dev\\KmlConverter\\DxfToKmlTests\\bin\\debug\\Zeichnung1.kml"; string filename = Path.GetFileName(s); string r = s.Replace(filename, ""); Console.WriteLine(filename); Console.WriteLine(r); Console.ReadKey();