Monday, September 04, 2006

Get Disk Cleanup to work faster

Disk CleanupOne of the things I don't like about Windows XP is when the Disk Cleanup utility (cleanmgr.exe) takes ages and ages to work out how much space I would save if I select the "Compress Old Files" option, which I never do.
It turns out you don't need to wait. I did a search for command line switches for cleanmgr.exe, and found this knowledge base article, which tells you how you can save a set of options using the /sageset option, and then use those predefined options with the /sagerun command. it turned out to be quite simple, and because I neglected to specify which drive, my sagerun collection now emplties the Recycle Bin on all my local drives, which is brilliant. I guess it pays to be curious.
Update: Using CCleaner works a lot faster, and more efficiently too. Just use the following command in your batch file:
"C:\Program Files\CCleaner\ccleaner.exe" /AUTO
CCleaner is a free utility that helps keep your PC running smoothly.

No comments:

Warning: The NSA and 4 million other sick weirdos with "security clearance" have intercepted this page and know that you are reading it.