Saturday, December 18, 2010

Windows - Find space usage by windows folders using diruse

Directory Disk Usage, known as diruse is a free command line tool found on Microsoft's Help . Using diruse is easy. After you have downloaded the tool, install by clicking on diruse_setup.exe.
After installing the program, open a command prompt and run:
cd "\Program Files\Resource Kit"
diruse /M /* c:\
where:
/M – reports in Magabytes
/*  – Uses the top-level directories residing in the specified directory (In the above example C:\ is the specifed directory)
Below is the results of the output:


Size (mb)      Files  Directory
0.22          3       SUB-TOTAL: C:\$VAULT$.AVG
301.49       3649    SUB-TOTAL: C:\Documents and Settings
539.93       6797    SUB-TOTAL: C:\I386
4767.69      13447   SUB-TOTAL: C:\OTHER
957.58       8666    SUB-TOTAL: C:\pebuilder3110a
1278.40      12564   SUB-TOTAL: C:\Program Files
504.03       1586    SUB-TOTAL: C:\RECYCLER
2194.60       8086    SUB-TOTAL: C:\System Volume Information
2346.51      15754   SUB-TOTAL: C:\WINDOWS
12890.45      70552   TOTAL