PowerShell获取当前目录文件夹路径path的方法
($pwd).Path
($pwd).Path
($pwd).Path
(Get-Location).path
(Get-Location).path
(Get-Location).path
(Resolve-Path .).path
(Resolve-Path .).path
(Resolve-Path .).path
(gi .).FullName
(gi .).FullName
(gi .).FullName
demo
PS C:\program files> ($pwd).Path
C:\program files
PS C:\program files> (Get-Location).path
C:\program files
PS C:\program files> (Resolve-Path .).path
C:\program files
PS C:\program files> (gi .).FullName
C:\program files
PS C:\program files>
© 版权声明
文章版权归作者所有,未经允许请勿转载,侵权请联系 admin@trc20.tw 删除。
THE END