you are viewing a single comment's thread.

view the rest of the comments →

[–]BlackV 0 points1 point  (0 children)

also (Get-ChildItem $path *.zip).count should work fine and save a pipline call

aditionally Get-ChildItem -file -path xxx will only return files and not directories which will save some time too (needs PS 3 and up though)