PowerShell获取当前目录文件夹路径path的方法

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

PowerShell获取当前目录文件夹路径path的方法_第1张图片

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>

你可能感兴趣的:(#,Windows,#,控制台命令行,Shell脚本,sh,cmd,等,command,pattern,后端)