今天介绍一下 .Net语法:直接获取文件路径的文件名:

取自System.IO.Path

Powershell 获取文件名--扩展语法

其中XXX为文件名全路径

 

当然,也可以获取文件名不要后缀(GetFileNameWithoutExtension)

 

Powershell 获取文件名--扩展语法

相关文章:

  • 2021-08-27
  • 2021-08-03
  • 2021-08-29
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案