Recursive file search using PowerShell

后端 未结 8 1602
情话喂你
情话喂你 2020-11-28 01:50

I am searching for a file in all the folders.

Copyforbuild.bat is available in many places, and I would like to search recursively.

$Fil         


        
8条回答
  •  臣服心动
    2020-11-28 02:53

    When searching folders where you might get an error based on security (e.g. C:\Users), use the following command:

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

提交回复
热议问题