C#通过文件路径获取文件名
<br />string fullPath = @"/WebSite1/Default.aspx";<br />string filename = System.IO.Path.GetFileName(fullPath);//文件名 “Default.aspx”<br />string extension = System.IO.Path.GetExtension(fullPath);//扩展名 “.aspx”<br />string fileNameWithoutExtension = System.I
复制链接