


This code can be modified to display the number of files/folders in the folder.

E.g., Regsvr32 c:\DirSize.DLL, if the DLL is present in C. If demo project is downloaded, then unzip the DLL and register it using the command "regsvr32 ". Well, if you build the project, you need not do anything, since the IDE automatically registers the DLL. To build this project, you must install Microsoft Platform SDK, or click here to download SHLOBJ.h. This class adds one more column to the Details view, which displays the consolidated folder size. Using this interface, one can customize the Explorer's Details view. This class implements the Shell interface called IColumnProvider. (I did not do anything to sort, it is done by Explorer. We also have the facility to sort according to the folder size. Using this DLL, one can view the folder size as one of the columns of the Explorer as shown in the image. There are some known issues, most of which deal with substituted dries and Samba shares.įolder size runs on Windows 2000 and higher except Vista, but only on 32-bit versions of Windows XP.In day to day life, when one wants to know the size of a folder, (s)he has to right click on the folder name and has to choose the Properties. If you don’t display the Folder Size column, the background scanner doesn’t stay active, so it won’t take up CPU time. You can also pause the service through the Folder Size Control Panel, which will keep it running and updating, but disable the background scanner. It keeps track of which folders you view and scans them in the background using an intelligent scanner service that monitors the average length of the disk requests queue. It works by adding a new “Folder Size” column that can list the size of the folder.

Of course, this information is only available in Details view, but if you are looking for this type of information you probably are already in that view. This is an open source project available on SourceForge at: Wouldn’t it be great if the folder size could be displayed right in Windows Explorer, just like it does for file size? Well, thanks to this post on Noah’s blog, it is now possible!
