News, Product Information, and Tips
Check out our free utlities in the downloads section

Remote Administration



Remote Administration For Windows. Easy remote access of Windows 7, XP, 2008, 2000, and Vista Computers

Click here to find out more

Create Outlook Profiles



No more setup wizards in Outlook. Setup Outlook Profiles automatically from the command line

Click here to find out more

Network Administrator



Reboot Hundreds of computers, disable flash drives, deploy power managements settings.

Click here to get your free copy of Network Administrator. Over 25 plugins to make your life easier

USB Disabler



Disable Flash Drives for specific users, or only allow specific drives.

Click here for your free trial

Search

Archives

Calculate folder size from the command line

Post image for Calculate folder size from the command line

by Steve Wiseman on July 23, 2010 · 1 comment

in Tips,Tools,Utility,Windows

Even with the huge amount of space that I have, I am always running out. When that happens I start digging.

Usually I wait through this:

Folder Properties

If you have more than just a few folders, it can be a huge waste of time.

I ran across a free tool from Microsoft called “Disk Usage”

You can download it from here

It is a command line tool. Point it at any folder, and get the same information:

Folder Properties DU

With one catch – it is much faster than using Windows Explorer ;)

For example, I went to the properties of a development folder on our server. It took 1 minute and 10 seconds to get the total size.

With Disk Usage it took 15 seconds.

The next part I am about to show you is even better. It is the real reason I love this tool. If you use the -v option, it will show you a breakdown of how much each sub folder is taking up:

Folder Disk Usage

Now with a quick glance, I can see what folders are taking up the most space. From there I can investigate and clean out anything that is not needed.

Like this article? Then sign up for my newsletter to get free tips and software sent right to your inbox once a week. Like you, I hate spam – I will never spam, or sell your email address.

Related Articles:

{ 1 comment… read it below or add one }

1 Sam January 4, 2012 at 2:44 pm

DU is much slower then windows explorer on my network tests. ON 49 gb folder took over 5 minuets longer.

Leave a Comment

Category Links - Windows Forum - Exchange Forum