
diskusage
diskusage is a command line utility for calculating folders sizes.
Arguments:
path: d:/go; d:/Books
limit: 20
fixunit:
depth: 2
Start scanning
1.| DIR: d:/go | SIZE: 325.72 Mb | DEPTH: 1
2.| DIR: d:/go/pkg | SIZE: 212.88 Mb | DEPTH: 2
3.| DIR: d:/go/src | SIZE: 62.57 Mb | DEPTH: 2
4.| DIR: d:/go/bin | SIZE: 30.44 Mb | DEPTH: 2
5.| DIR: d:/Books/Chess | SIZE: 14.01 Mb | DEPTH: 2
6.| DIR: d:/Books | SIZE: 14.01 Mb | DEPTH: 1
7.| DIR: d:/go/api | SIZE: 6.41 Mb | DEPTH: 2
8.| DIR: d:/go/test | SIZE: 5.11 Mb | DEPTH: 2
9.| DIR: d:/go/doc | SIZE: 4.00 Mb | DEPTH: 2
10.| DIR: d:/go/misc | SIZE: 3.82 Mb | DEPTH: 2
11.| DIR: d:/go/lib | SIZE: 358.25 Kb | DEPTH: 2
Finish scanning
Total time: 272.0156ms
Features
- A primitive tool for getting folder(s) sizes
- Command line environment only
- Supports both folders and disks as arguments
- Recursive pass through subfolders
- Calculate size of each folder
- Analyze on defined depth of subfolders
- Set limit how much folders will be printed in a results
- Fast
Main cons
- No any dummies protection (also pros)
- No any intelligents features (also pros)
Releases
Releases available as single executable files – just download latest release for your platform, unpack and run.
Start on Windows - simple usage
diskusage.exe -path "c:/somedir"
if you want to get 20 biggest directories in c:/somedir
diskusage.exe -path "c:/somedir" -depth 1
if you want to get only c:/somedir size
diskusage.exe -path "c:/somedir; d:/otherdir"
if you want to calculate size each of them
Start on Windows - advanced usage
diskusage.exe -path "c:/somedir; d:/otherdir" -limit 20 -fixunit "Gb" -depth 3
if you want to get 20 biggest directories across c:/somedir and d:/otherdir with a three subfolder's levels depth. All results will be represented in Gb.
where:
-path "c:/somedir; d:/otherdir"
is list of disk(s) / folder(s) separated by semicolon (required)
-limit 20
is how much biggest folders will be printed in the results (optional)
-fixunit "Gb"
you can choose unit style to representing folder sizes. It can be fixed or dynamic-scaled.
You can use "fixunit" in case you want to compare sizes afterward (optional).
-depth 3
is depth of subfolders to analyze (optional)
For integration with a other systems I recommend create a batch file like this:
del results.txt
diskusage.exe -path "c:/somedir" > results.txt