
Resolve-Pathを使うことによってパスの解決が出来ます。
構文
Resolve-Path [-Path] <パス>
例
ホームパスを表示するPS C:\work> Resolve-Path ~ Path ---- C:\Users\hosopro
ワイルドカードに一致するパスを表示する
PS C:\work> Resolve-Path "image*" Path ---- C:\work\image1 C:\work\image2 C:\work\image3
スポンサーリンク
2017年5月12日 (金) 22:13 in PowerShell
PS C:\work> Resolve-Path ~ Path ---- C:\Users\hosopro
PS C:\work> Resolve-Path "image*" Path ---- C:\work\image1 C:\work\image2 C:\work\image3
スポンサーリンク