Windows Vista Forums

How to count the total files under c:\abc\<* folders>\out where <* folders> are many folders?
  1. #1


    ABC Guest

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

    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

  2. #2


    George Davis Guest

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

    $a = dir -recurse | where { $_.PSIsContainer -eq $false}
    $a.Count

    "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

  3. #3


    IJuan Guest

    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

How to count the total files under c:\abc\<* folders>\out where <* folders> are many folders? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
vista leaves behind folders when moving folders with files in them power 3 Vista General 1 14 Nov 2008
Renamed Folders Revert to Previous Names, Cannot Move Folders - FOLDERS ONLY Mush Man Vista file management 6 19 Sep 2008
Folders Not Updating Unread Message Count RonnieJP Live Mail 2 04 Jul 2008
BUG: Incorrect message count in deleted and junk folders osu9400 Live Mail 3 30 May 2008
why do i have more pictures folders than i can count and how do i stacy Vista performance & maintenance 3 13 Feb 2008