现有一个文件路径为:  localFilePath=”C:\Users\yhood\Desktop\林业局考勤06.xlsx“

  string directory = Path.GetDirectoryName(localFilePath);  
  //文件所在路径      C:\Users\yhood\Desktop string filename = Path.GetFileNameWithoutExtension(localFilePath);
  //文件名    林业局考勤06 string extension = Path.GetExtension(localFilePath);
  //文件后缀 带点(.)     .xlsx

 

相关文章:

  • 2022-12-23
  • 2021-11-08
  • 2021-11-27
  • 2022-12-23
  • 2022-02-05
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-09-22
相关资源
相似解决方案