SUMMARY
This article describes how use command-line options to configure the Disk Cleanup tool (Cleanmgr.exe) to automatically clean up certain files.
MORE INFORMATION
Cleanmgr.exe is designed to clear unnecessary files from your computer’s hard disk. You can use command-line options to specify that Cleanmgr.exe cleans up certain files. You can then schedule the task to run at a specific time by using the Scheduled Tasks tool.
To start the Disk Cleanup tool, either run the Cleanmgr.exe command, or click
Start, point to Programs, point to Accessories, point to System Tools, and then click Disk Cleanup.
Disk Cleanup supports the following command-line options: