Home > PowerShell, Tips > count files by extension using powershell

count files by extension using powershell

Just a tip.

PS C:> Get-Childitem c:myfiles -Recurse | where { -not $_.PSIsContainer } | group
Extension -NoElement | sort count -desc

No related content found.

Categories: PowerShell, Tips
  1. Maria
    March 13, 2012 at 8:18 am | #1

    Awesome – saved my life

  2. April 25, 2012 at 10:14 am | #2

    hi
    that’s grate
    I need this code
    ;-)

  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>