Recursive file search using PowerShell

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

    Try this:

    Get-ChildItem -Path V:\Myfolder -Filter CopyForbuild.bat -Recurse | Where-Object { $_.Attributes -ne "Directory"}
    

提交回复
热议问题