How to start Disk Cleanup by using the command line


Summary


This article describes how to start the Disk Cleanup tool and specify the hard disk to be cleaned by using the command line.

More Information


To start the Disk Cleanup tool and specify the hard disk to be cleaned by using the command line, follow these steps:
  1. Click Start, and then click Run.
  2. In the Open box, type the following command, and then press Enter:
    c:\windows\SYSTEM32\cleanmgr.exe /dDrive 
    Note In this command, the placeholder Drive represents the drive letter of the hard disk to be cleaned.