Recursive file search using PowerShell

后端 未结 8 1606
情话喂你
情话喂你 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:47

    Use the Get-ChildItem cmdlet with the -Recurse switch:

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

提交回复
热议问题