≡ Menu

How to find disk usage in Windows

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:        67482
Directories:  14198
Size:         14,602,213,939 bytes
Size on disk: 14,597,516,679 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:        169591
Directories:  33839
Size:         101,282,363,438 bytes
Size on disk: 101,274,488,768 bytes
6 comments… add one
  • dimi

    great tool, i like the software create by Windows Sysinternals

  • boop

    native at least w7:
    wmic logicaldisk get size,freespace,caption

  • Bert

    Is there a way to use disk usage on a remote system to get the size of a user profile?
    When I us the command locally I get the correct profile size.
    However when I try to get the profile size of a emote system using the syntax below the file size du.exe shows is no where the actual file size.
    \\IP address or PC name\c$\share\Directory Name
    The actual directory size was 4 GB and du.exe showed the directory size as 30856040 Bytes which is about .028 GB.
    That is a big difference.

  • Donna Briggs

    Hi

    Instructions on running / installing the app would be appreciated. I select ‘Run as Administrator’ . A command window flashed on screen, then nothing.
    App is not installed.

    Thanks

    • Radek

      @Donna: you need to open command line (cmd) and use du.exe in there. This is console tool, no gui here.
      Hope that helps :)

      AeoN

Leave a Comment