View Single Post
Old 04-15-2007   #3 (permalink)
IJuan


 
 

RE: How to count the total files under c:\abc\<* folders>\out where <*

gci c:\abc\*\out\* | ? {$_.mode -notmatch "d"} | measure-object

You can add the -recurse switch if you want to count the files in the
subfolders of the "out" folders.

-= IJuan =-


"ABC" wrote:

> How to count the total files under c:\abc\<* folders>\out where <* folders>
> are many folders?
>
> the structure of c:\ as
>
> c:\abc\aaa\out
> c:\abc\aaa\done
> c:\abc\bbb\out
> c:\abc\bbb\done
> c:\abc\ccc\out
> c:\abc\ccc\done
>
>
>
>

My System SpecsSystem Spec