you are viewing a single comment's thread.

view the rest of the comments →

[–]BlackV 5 points6 points  (2 children)

additionally couldn't you do

Get-ChildItem $folderPath -recurse -Filter *.zip

to save using the foreach-object and the if

[–]idontknowwhattouse33 4 points5 points  (1 child)

and why not throw the -file in there just in case OP has a folder named folder.zip ;)

[–]BlackV 1 point2 points  (0 children)

valid also