fordownloads.blogg.se

How to show folder size
How to show folder size







To solve this problem, we can use the Folder Size, which we know today. When we visualize the files and folders in Windows Explorer, only got to see on our right the size of each file - the size of directories appear empty. So this won't stop you from traversing through other files.You can not understand why Windows does not come with this option - the Mac has: view the folder size. But all the operations are done in the background (Explorer is smart enough!. First time, it might take some minutes depending upon the contents of the folder. When the user selects the "Folder Size" item from the Explorer context menu, the Explorer starts calculating the folder size by traversing all the files and nested folders. Or maybe, you can pack two more classes to display columns for number of files and number of folders into the same DLL to do so. This code can be modified to display the number of files/folders in the folder.

how to show folder size

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.

how to show folder size

(I did not do anything to sort, it is done by Explorer. We also have the facility to sort according to the folder size.

how to show folder size how to show folder size

Using this DLL, one can view the folder size as one of the columns of the Explorer as shown in the image. 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.









How to show folder size