System.IO.Path.GetFileNam(filePath)       //返回带扩展名的文件名 
System.IO.Path.GetFileNameWithoutExtension(filePath)     //返回不带扩展名的文件名 
System.IO.Path.GetDirectoryName(filePath)     //返回文件所在目录

System.IO.Path.GetExtension(filePath)  //返回文件扩展名

相关文章:

  • 2021-05-30
  • 2022-12-23
  • 2021-10-02
  • 2021-10-27
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-23
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-07-16
相关资源
相似解决方案