Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Setting a maximum depth level on -recurse

$
0
0

Hello All,

Is there a simply way to set a maximum number of levels -resurse will go to down a directory structure i.e. say 5 levels when doing something like this

get-childitem c:\ -filter "*.exe" -recurse

 

Thanks

Ernie

PS v2


Viewing all articles
Browse latest Browse all 8583