Torgeir
Sat Feb 07 18:10:06 CST 2004
Brian White wrote:
> Is there a program like AutoDefrag that runs the disk cleanup tool?
Hi
Automating Disk Cleanup Tool in Windows 2000
http://support.microsoft.com/?id=253597
How to Automate the Disk Cleanup Tool in Windows XP
http://support.microsoft.com/?id=315246
To simplify what the articles above documents, there is a 2 step
process needed:
First a interactive run where you set up what cleanmgr is supposed
to do and where, and give it a sage number you can refer to later
(38 in my example below) like this:
Cleanmgr.exe /dC: /sageset:38
When you are finished, you can run the cleanup without any user
interaction like this:
Cleanmgr.exe /sagerun:38
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide:
http://www.microsoft.com/technet/scriptcenter