SYSK 369: What’s Taking So Much Hard Drive Space? … or Getting ‘True’ Folder Size


If, from time to time, you delete some files & folders from your hard disk, either because it’s no longer needed or just takes too much space and needs to be moved elsewhere, you may find the following utility useful…


 


Basically, the tool below goes through all subfolders (starting with the specified location), and computes the total space taken by files in the folder, excluding subfolders… but it does it recursively, so you get the “true” folder size based on just the files in it…


As a result, it lists them in ascending or descending order (specified by a checkbox)…


 


Attached are the executable and source code…


 


Disclaimer: I created this tools as a “quick and dirty” app to help me figure out why my backups took so long…  i.e. it’s not intended to be “production quality” code, etc., etc.

FolderSize.zip

Comments (2)

  1. I must be missing something.  The application does nothing but appear hung for a few seconds.  Depending on the directory I give it, it crashes with a FileNotFoundException.

  2. irenak says:

    Thanks Peter!  Somehow a faulty exe got in…  I’ve reposted the zip.  Please give it one more try.