标签:path nbsp director 目录 bsp 回文 返回 name 文件路径
System.IO.Path.GetFileNam(filePath) //返回带扩展名的文件名
System.IO.Path.GetFileNameWithoutExtension(filePath) //返回不带扩展名的文件名
System.IO.Path.GetDirectoryName(filePath) //返回文件所在目录
System.IO.Path.GetExtension(filePath) //返回文件扩展名
标签:path nbsp director 目录 bsp 回文 返回 name 文件路径
原文地址:http://www.cnblogs.com/suxiaBlogs/p/7208949.html