Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

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 10624

Trending Articles