PowerShell/ファイル一覧からファイル名のみ抽出する
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* ファイル一覧からファイル名のみ抽出する [#cdc96737]
PowerShellでファイル一覧からファイル名のみ抽出する方法を...
#contents
#htmlinsertpcsp(win-top.html,win-sp.html)
* Get-ChildItemのオプションを利用する [#p09ea73d]
Get-ChildItemをオプションなしで実行すると以下のように表示...
PS C:\Users\sakura> Get-ChildItem
ディレクトリ: C:\Users\sakura
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2014/09/14 23:54 .gimp-2.8
d---- 2014/07/20 22:56 .thumbnails
d---- 2015/01/02 16:35 .VirtualBox
d-r-- 2014/12/15 18:22 Contacts
d-r-- 2015/01/09 12:43 Desktop
d-r-- 2014/12/15 18:22 Documents
d-r-- 2015/01/09 12:16 Downloads
d-r-- 2014/12/15 18:22 Favorites
d-r-- 2014/12/15 18:22 Links
d-r-- 2014/12/15 18:22 Music
d-r-- 2014/12/15 18:22 Pictures
d-r-- 2014/12/15 18:22 Saved Games
d-r-- 2014/12/15 18:22 Searches
d-r-- 2014/12/15 18:22 Videos
d---- 2014/07/31 12:43 VirtualBox ...
-a--- 2014/07/17 3:15 0 agent.log
オプションの-Nameを利用することにより、ファイル名のみ表示...
PS C:\Users\sakura> Get-ChildItem -Name
.gimp-2.8
.thumbnails
.VirtualBox
Contacts
Desktop
Documents
Downloads
Favorites
Links
Music
Pictures
Saved Games
Searches
Videos
VirtualBox VMs
agent.log
以上、Get-ChildItemを使ってファイル名のみ表示する方法でし...
#htmlinsertpcsp(win-btm.html,win-sp.html)
終了行:
#navi(../)
* ファイル一覧からファイル名のみ抽出する [#cdc96737]
PowerShellでファイル一覧からファイル名のみ抽出する方法を...
#contents
#htmlinsertpcsp(win-top.html,win-sp.html)
* Get-ChildItemのオプションを利用する [#p09ea73d]
Get-ChildItemをオプションなしで実行すると以下のように表示...
PS C:\Users\sakura> Get-ChildItem
ディレクトリ: C:\Users\sakura
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2014/09/14 23:54 .gimp-2.8
d---- 2014/07/20 22:56 .thumbnails
d---- 2015/01/02 16:35 .VirtualBox
d-r-- 2014/12/15 18:22 Contacts
d-r-- 2015/01/09 12:43 Desktop
d-r-- 2014/12/15 18:22 Documents
d-r-- 2015/01/09 12:16 Downloads
d-r-- 2014/12/15 18:22 Favorites
d-r-- 2014/12/15 18:22 Links
d-r-- 2014/12/15 18:22 Music
d-r-- 2014/12/15 18:22 Pictures
d-r-- 2014/12/15 18:22 Saved Games
d-r-- 2014/12/15 18:22 Searches
d-r-- 2014/12/15 18:22 Videos
d---- 2014/07/31 12:43 VirtualBox ...
-a--- 2014/07/17 3:15 0 agent.log
オプションの-Nameを利用することにより、ファイル名のみ表示...
PS C:\Users\sakura> Get-ChildItem -Name
.gimp-2.8
.thumbnails
.VirtualBox
Contacts
Desktop
Documents
Downloads
Favorites
Links
Music
Pictures
Saved Games
Searches
Videos
VirtualBox VMs
agent.log
以上、Get-ChildItemを使ってファイル名のみ表示する方法でし...
#htmlinsertpcsp(win-btm.html,win-sp.html)
ページ名: