I’m making an inventory of the directories in a couple of our servers here. At the root level, I need to determine the file count and total file size of each directory and all subdirectories. Right now I have to right click -> properties on each of the folders to get this information.
Is there a way I can do this with Windows command line tools? If not, is there a program (preferably free) I can download?
Here’s a script I wrote a while back to do exactly that (roughly similar to ‘du’ in unix if you’re familiar). Handy for just finding the top disk hogs with the “–largest <n>” argument. Also has the option to just look at the top directories in the specified target directory. For example: