Add Folder Size in Windows XP's Explorer

Neat lit­tle tip to see size of your folders.

Want to see the size of your fold­ers and not just files in your Win­dows XP Explorer listings?

If you are inter­ested, Sequoia View is a very use­ful tool to do some nifty things with your fold­ers. Other than that, this fol­low­ing note is now show­ing its age. If sort­ing and such is not nec­es­sary, a sim­ple mouse-over your fold­ers in Explorer will show you a tooltip with an approx­i­mate size of your direc­to­ries. The menu option Tools --> Options --> View --> Show file size in folder tips should let you con­trol the behav­ior of this tooltip.

Well it's prob­a­bly a sim­ple fea­ture that the Win­dows team at Microsoft for­got to include, so Mark Dormer has a solu­tion. Just down­load his tiny DLL file:

It's an EXE file. All you really have to do is:

  1. Copy the file to your c:windowssystem32 folder.
  2. Exe­cute the fol­low­ing com­mand in Start –> Run dia­logue box and you're ready to roll:
    regsvr32 c:windowssystem32dirsize.dll
  3. Now open Explorer in details view, you wont see the col­umn yet. Right click on a head­ing in the right pane and select "Folder Size".

Cou­ple of Caveats

  • Cal­cu­lat­ing folder size is a tur­tle on very large fold­ers with lots of sub­fold­ers. There's no index­ing built into this.
  • As much you and I would like, this tool doesn't do sort­ing of fold­ers based on the folder size. You may want to give another util­ity a try, the Folder Shell Exten­sion.

Cou­ple of Tips

  • To apply this set­ting for all the folder, click Tools, Folder Options. In the View tab and click Apply to all folders.
  • To remove the fea­ture, sim­ply un–reg­is­ter the DLL later with the fol­low­ing com­mand (ignore error mes­sages if any) – 
    regsvr32 /u %Systemroot%System32Dirsize.dll

Hope this helps.