Windows does not have any in-built command(Like the Linux command du) which show the disk usage statistics for a directory. However, there’s a downloadable tools from SysInternals(now part of Microsoft) which can show us the disk usage numbers.

Du.exe version 1.4 can be downloaded from the below link.

http://technet.microsoft.com/en-us/sysinternals/bb896651

Find the disk usage of a directory

Command for finding the size of a directory is:

du directory

Example:

To find the size of the folder C:Windows, the command would be:

C:>du.exe  c:windows
Du v1.34 - report directory disk usage
Copyright (C) 2005-2009 Mark Russinovich
Sysinternals - www.sysinternals.com

Files:        
Directories:  
Size:          bytes
Size on disk:  bytes

 Find the disk usage of a drive

Using du command we can find the current disk usage of a disk drive also.
Example:

C:>du.exe  c:

Du v1.34 - report directory disk usage
Copyright (C) 2005-2009 Mark Russinovich
Sysinternals - www.sysinternals.com

Files:        
Directories:  
Size:          bytes
Size on disk:  bytes