Senza ulteriori cmdlet installati, puoi semplicemente utilizzare Get-ChildItem
:
Get-ChildItem -Filter *.zip -Recurse $pwd
Il Find-ChildItem
Il cmdlet in Windows Powershell è un equivalente del comando find di Unix/Linux
http://windows-powershell-scripts.blogspot.in/2009/08/unix-linux-find-equivalent-in.html
Alcune delle opzioni Find-ChildItem
Find-ChildItem -Type f -Name ".*.exe"
Find-ChildItem -Type f -Name "\.c$" -Exec "Get-Content {} | Measure-Object -Line -Character -Word"
Find-ChildItem -Type f -Empty
Find-ChildItem -Type f -Empty -OutObject
Find-ChildItem -Type f -Empty -Delete
Find-ChildItem -Type f -Size +9M -Delete
Find-ChildItem -Type d
Find-ChildItem -Type f -Size +50m -WTime +5 -MaxDepth 1 -Delete
Divulgazione:sono lo sviluppatore di Find-ChildItem
cmdlet
dir <drive: [drive:]> /s | findstr /i <pattern>
- alternativa -
dir /s <drive:>\<pattern>
esempio
dir c: d: /s | findstr /i example.txt
- alternativa -
dir /s c:\example.txt