すべてのフォルダでファイルを検索しています。
Copyforbuild.bat
多くの場所で利用可能であり、再帰的に検索したいと思います。
$File = "V:\Myfolder\**\*.CopyForbuild.bat"
PowerShell でどうすれば実行できますか?
ベストアンサー1
使用取得-子アイテムスイッチ付きのコマンドレット-Recurse
:
Get-ChildItem -Path V:\Myfolder -Filter CopyForbuild.bat -Recurse -ErrorAction SilentlyContinue -Force