Output directory size statistics for one or more paths in the file system

This PowerShell script counts the number of files and the sum of sizes of files for paths in the file system. The script requires at least PowerShell v2 and outputs objects with the following properties: Path, Files (number of files), and Size (sum of the sizes of all the files).

Get-DirStats.ps1
 
 
 
 
 
(19)
20,428 times
Add to favorites
Storage
5/15/2012
E-mail Twitter del.icio.us Digg Facebook