Possible Duplicate:
What are good tools to show disk usage (for Windows)?

In brief, I have a system with several hard disks, and although we install everything on the extra (internal) drives, the primary drive (the one with the OS on it) is almost at max capacity now. This particular setup is a Windows 7 (x64) system which is required for our simulators, and therein lies the problem. On Linux I could just ls -ltr to find recently added/modified files, or use du to get quick info about disk usage.

Is there a way to do this on Windows via the command line / PS? What's a fast way to figure out what's eating up my space?

WinDirStat image
WinDirStat - WinDirStat is a disk usage statistics viewer and cleanup tool for Microsoft Windows. It reads the whole directory tree once and then presents it in three useful views:

  • The directory list, which resembles the tree view of the Windows Explorer but is sorted by file/subtree size,
  • The treemap, which shows the whole contents of the directory tree straight away,
  • The extension list, which serves as a legend and shows statistics about the file types.

TreeSize Free image
TreeSize Free - There is both a paid and free version. TreeSize Free can be started from the context menu of a folder or drive and shows you the size of this folder, including its subfolders. You can expand this folder in Explorer-like style and you will see the size of every subfolder. All results can also be drilled down to the file level. Scanning is done in a thread, so you can already see results while TreeSize Free is working. The Explorer context menu is supported within TreeSize, as well as the usual drag & drop operations.

Scanner image
Scanner - This tool uses a sunburst chart to display the usage of your hard disk or other media. The chart shows all major files and folders from all directory levels at once.

Disk Usage - command line utility that reports the disk space usage for the directory you specify. By default it recurses directories to show the total size of a directory and its subdirectories.

DiskMon image
DiskMon - an application that logs and displays all hard disk activity on a Windows system. You can also minimize DiskMon to your system tray where it acts as a disk light, presenting a green icon when there is disk-read activity and a red icon when there is disk-write activity.

SpaceSniffer image
SpaceSniffer - an application that lets you understand how folders and files are structured on your disks. By using a Treemap visualization layout, you have immediate perception of where big folders and files are placed on your devices.

JDiskReport image
JDiskReport - an application which enables you to understand how much space the files and directories consume on your disk drives, and it helps you find obsolete files and folders. Requires Java.

sequoiaView image
sequoiaView - a disk browsing tool based on the principle of treemaps, with one unique feature added, namely Cushion Treemaps. The principle is simple: each time a rectangle is subdivided, ridges are added. The result is a pattern of hierarchical cushions that show the structure in the directories and files. The user can set the height of the ridges as well as using lower ridges for deeper nested levels, offering a choice between displaying global information (high level directories) or detailed info such as individual files. The user can also choose between the original cushions and the squarified cushions.

marked as duplicate by Iain Mar 10 '12 at 12:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Also take a look at the related and linked questions in the bar on the right of the duplicate. – Iain Mar 10 '12 at 12:18

Why does it have to be from the command line? I like http://www.jam-software.com/treesize_free/.

  • Treesize is great, but if you have 1000 computers to run this on, commandline is the only way to do it easilly – Mark Henderson Mar 10 '12 at 20:14

For a free command-line tool, see the Disk Usage program from SysInternals.


You can try this from the command prompt:

> diruse path\to\folder

To get the size in Megabytes, you can use '/M'. You can request help as normal using /?.

Not the answer you're looking for? Browse other questions tagged or ask your own question.