Windows – How to display the size for folder in windows explorer

windowswindows 7windows-explorer

Just wondering that if there is a way to display the size of folder in size column inside of windows explorer? by default, it only display the size of a file, you have to use right click and properties or other way to check the size of a folder. I searched online, there are some 3rd party tools or explorers can do this.

I m just looking for some native way built into windows to show folder size if any one knows how…..

Best Answer

Depending on your needs you can use a simple VBS Script:

Dim oFS, oFolder
Set oFS = WScript.CreateObject("Scripting.FileSystemObject")
Set oFolder = oFolder.GetFolder("c:/Temp")
WScript.Echo Round(oFolder.Size/1024/1024,3) & " MiByte"

You can bring it down even to a single line:

WScript.Echo Round(WScript.CreateObject("Scripting.FileSystemObject").GetFolder("c:/Temp").Size/1024/1024,3) & " MiByte"