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

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

作者

Victor Woo

发布于

2017-11-16

更新于

2017-11-16

许可协议

PowerShell 技术 QQ 群