PowerShell を使用した再帰的なファイル検索 質問する

PowerShell を使用した再帰的なファイル検索 質問する

すべてのフォルダでファイルを検索しています。

Copyforbuild.bat多くの場所で利用可能であり、再帰的に検索したいと思います。

$File = "V:\Myfolder\**\*.CopyForbuild.bat"

PowerShell でどうすれば実行できますか?

ベストアンサー1

使用取得-子アイテムスイッチ付きのコマンドレット-Recurse:

Get-ChildItem -Path V:\Myfolder -Filter CopyForbuild.bat -Recurse -ErrorAction SilentlyContinue -Force

おすすめ記事