PowerShell 技能连载 - Getting File Extension

By converting a path to a FileInfo object, you can easily determine the path parent folder or file extension. Have a look:

([IO.FileInfo]'c:\test\abc.ps1').Extension

([IO.FileInfo]'c:\test\abc.ps1').DirectoryName

PowerShell 技能连载 - Getting File Extension

http://blog.vichamp.com/2017/11/16/getting-file-extension/

作者

吴波

发布于

2017-11-16

更新于

2022-07-06

许可协议

评论