Bookmarklets Add/Remove Programs in the Open With Menu How to make a Web 2.0 Logo Tweak Your Desktop Vista Terms Defined
Collapsed This Week Collapsed CyberNotes
Collapsed Last Week

CyberNotes
Tutorial Thursday


Getting the size of folders in Windows XP has always been way too much of a pain if you ask me. There should be a built-in option to display the folder size much like how file sizes are displayed. The most obvious reason for them not providing such a tool is the length of time at CPU usage it takes to query a folder that contains thousands of files, such as the Program Files folder.

It is super easy to add a column in Windows Explorer that displays the folder size…in fact you can have it setup in under a minute. There aren’t that many steps to getting it done and if you want to save yourself 15-seconds download the utility called Folder Size, install it, and skip to step 3. I, however, prefer to bypass installing a program wherever possible, and this is one instance where it hardly seems necessary to install the program.

  1. Download the DirSize.dll file from this mirror that I setup. If you really want to the file can be downloaded from the DLL’s homepage, but you’ll have to register. After the download is complete, drag the DirSize.dll file to your \Windows\system32 folder:
    DirSize.dll
  2. Next, open up the Run command by going to the Start Menu -> Run and then type regsvr32 dirsize.dll into the box:
    Register DirSize.dll
    After you press “OK” you should receive a confirmation box saying that the DLL was successfully registered:
    DLL Registered
  3. If you have a Windows Explorer window open you should close it and then reopen it. Then, when you’re in the Detailed view just right-click on a header and select Folder Size to add the column.
    Folder Size
    After doing this you should see the new column:
    Folder Size
  4. After you get the column positioned just how you like it, you should go to Tools -> Folder Options -> View and click the button Apply to All Folders. This will ensure that the Folder Size column is displayed every time you use Windows Explorer.
    Folder Options

I would say that the Folder Size works pretty well without straining your computer too much. You might notice folder sizes not showing up the first few times you use Windows Explorer because they do take a little while to calculate. For example, my Program Files folder has 25,000 files totaling 2.9GB and it took 32 seconds to calculate the folder size. However, it does appear to cache these values because the next time I came across that folder the size appeared instantly.

You’ll probably be surprised at the amount of space some of the folders take up on your PC once you have this installed. I managed to find some folders that had old versions of applications I used to install, but they are several years out of date. The only reason I noticed this folder was because I was navigating through Windows Explorer looking for a file and I noticed a 300MB folder. :)

RSS Icon This is just one of the hundreds of CyberNotes we have done. You can find more of them by visiting our CyberNotes category, or by subscribing to our CyberNotes feed. We also have a full feed available if you want to receive all of our articles in your reader!

Tags: CyberNotes, Freeware, Software, Windows

Previous ArticleNext Article
 

Related Posts:


20 Unread Comment Tracking CyberMark This Article
RSS Icon
20

  1. Avatar

    Thank you! :) BTW, does Windows Vista have similar feature built-in, or not?

  2. Avatar

    I always thought that Windows should include this option.

    Another annoyance is that the size of zip files are not displayed in the status bar like other files types. I know the size is displayed in the “Details” section of the folders sidebar but I rarely use it.

  3. Avatar
    SLA wrote:
    Thank you! :) BTW, does Windows Vista have similar feature built-in, or not?

    I actually can’t remember whether this was built into Vista or not. I’ll know for sure this weekend because I’ll be reinstalling Vista, but for some reason I was thinking this was available.

    CoryC wrote:
    I always thought that Windows should include this option.

    Another annoyance is that the size of zip files are not displayed in the status bar like other files types. I know the size is displayed in the “Details” section of the folders sidebar but I rarely use it.

    I never really look at the status bar for file sizes since I am always in the Details View, so I never noticed that. I wonder why that is?

  4. Avatar

    nice tip but not necessarily the most precise (i know of no alternative). i have a 10 gig music folder that is showing as having 265 mb in it. i added 2 albums and it jumped to 404 mb. not sure how much i can trust it.

  5. Avatar

    lol, I was just trying the other day to find a way to show my folders size. :P
    Thanks for the tip!

  6. Avatar
    n_sani_t wrote:
    nice tip but not necessarily the most precise (i know of no alternative). i have a 10 gig music folder that is showing as having 265 mb in it. i added 2 albums and it jumped to 404 mb. not sure how much i can trust it.

    I’ve had it calculate folders up to 3.5GB without problems, but I’m sure there are some limitations.

  7. Avatar

    Ryan: you should try TreeSize. It calculates what folders take up all your space and displays them in a handy folder tree format. It’s a free download, but the developer also offers a Professional edition.

    [jam-software.com] (site)
    [jam-software.com] (screenshot)

  8. Avatar

    CoryC wrote:
    Another annoyance is that the size of zip files are not displayed in the status bar like other files types.

    Ha! You can fix this in seconds: Press “Start” / “Run” and enter this command:

    regsvr32 /u zipfldr.dll

    That’s all. Now “ZIP folders” are ordinary files, like it was in earlier Windows versions.

    Next you have to install any archiver, and associate it with .ZIP files:

    Best SHAREWARE archiver is [rarlab.com]
    Good FREE archiver is [7-zip.org]

  9. Avatar

    pdedecker wrote:
    you should try TreeSize. It calculates what folders take up all your space and displays them in a handy folder tree format.

    I know a better app:

    OverDisk

    Homepage: [users.forthnet.gr]
    User opinions: [snapfiles.com]
    Screenshot: [softpedia.com]

  10. Avatar

    i’m partial to jdiskreport:
    [jgoodies.com]

  11. Avatar

    Sweet tweak thanks.
    :D

  12. Avatar

    now this one was handy ! nice

  13. Avatar

    Wowsers, I have to admit that I wasn’t expecting such an awesome response. :D I’m really glad everyone likes this post. :D

  14. Avatar

    Ryan wrote:
    Wowsers, I have to admit that I wasn’t expecting such an awesome response. :D I’m really glad everyone likes this post. :D

    It is absolutely unpredictable things… Sometimes less interesting post gets many comments. And sometimes vice versa: For example, there is a post on your site, which is interesting, and SHOULD get many comments, but the post is so complete itself, that people just don’t have any comments, they have nothing to add. :)

  15. Avatar

    We never really looked at it that way, thanks for pointing that out. It just made our day a little brighter. :D

  16. Avatar

    Nice tip Ryan but you need a correction! The command you have quoted is missing a vital “r”…it should read “regsrvr32 dirsize.dll” and not as stated in your article. :lol:

  17. Avatar

    Please ignore my last comment! Posted in haste and retracted at leisure! The command is correct as you state “regsvr32 dirsize.dll”…my only problem is that I then get a message telling me that “loadLib failed…” after following your steps above. :(

  18. Avatar

    I located a zipped version of the same file here [adminnotes.com] which worked fine this time with your instructions Ryan. I can’t understand why your file version didn’t sit happily on my system.

  19. Avatar

    I’m not sure why my file didn’t work either. :(

    It looks like you’re the first person to have said anything about it so I hope others aren’t having the same problem.

:mrgreen: :| :twisted: 8O :) :? 8) :evil: :D :oops: :P :roll: ;) :cry: :o :lol: :x :(
↓ Expand Text Area  or  Decrease Text Area ↑

 Find out how to track new comments!