I need a command (like "dir") that lists all directories with their size. I need just a 1 level deepness but with the total size of a directory.
For example
>dirsize c:/mainfolder
subfolder1 15640
subfolder2 682310
subfolder3 283550
|
I need a command (like "dir") that lists all directories with their size. I need just a 1 level deepness but with the total size of a directory. For example
|
||||
|
|
|
Use
or
|
|||
|
|
|
Paste the following into a file in the parent directory named
Then run the command below from the parent directory. Alternatively, you could install the GNU coreutils for Windows and substitute for /D %subdirs in (.*) do getdirsize.bat %subdirs |
|||
|
|