【Powershell】Get-ChildItemでフルパスを取得

フルパス欲しいってとき、あるよね。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
PS C:\WORK> Get-ChildItem .\test.csv ディレクトリ: C:\WORK Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 2017/12/07 17:08 708286 test.csv #フルパス PS C:\WORK> (Get-ChildItem .\test.csv).FullName C:\WORK\test.csv #拡張子なしファイル名 PS C:\WORK> (Get-ChildItem .\test.csv).BaseName test #拡張子 PS C:\WORK> (Get-ChildItem .\test.csv).Extension .csv #拡張子付きファイル名 PS C:\WORK> (Get-ChildItem .\test.csv).Name test.csv |