天天看點

asp.net 擷取檔案夾名,截取檔案夾名,截取路徑中檔案夾的名字

string path = "E:\download\heisetoufa";
System.IO.Path.GetFileName(path)
           

結果為:heisetoufa

黑色頭發:http://heisetoufa.iteye.com/