Count number of files by filetype

Using Powershell, we can count the number of files by filetype, using the following command:

get-childitem -recurse | select -expandproperty extension | group | select name,count | sort count –desc

 

 

Leave a Reply

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