Schedule Disk Cleanup

  • Thread starter Thread starter Bill_D
  • Start date Start date
B

Bill_D

Hi,
Can anyone tell me how to schedule Disk Cleanup so that
it accepts the program settings/defaults and runs the
program w/o user interaction. If I use the Scheduled Task
Wizard, all this does is open the program and wait for
user interaction. There should be an extension I can give
to the schedule task command line "C:\WINDOWS\SYSTEM32
\cleanmgr.exe" which will allow the program to execute
without user interaction.

If, this doesn't exist, then there should be an
schedulable, executable DOS command with options to
select the drive, etc., which will do the same thing
similar to the DOS commant "C:\WINDOWS\SYSTEM32
\defrag.exe c: -f" which runs the Disk Defragmenter.

Thanks much for your help.
 
Bill,

You need to pass command-line parameters, otherwise it will just open the application and wait for user input.

Explained here:

See this Expertzone column: "Maintain Your PC"
http://www.microsoft.com/windowsxp/expertzone/columns/crawford/october08.asp

Automating Disk Cleanup in Windows XP
http://support.microsoft.com/?kbid=315246

--
Ramesh - Microsoft MVP
http://www.mvps.org/sramesh2k



Hi,
Can anyone tell me how to schedule Disk Cleanup so that
it accepts the program settings/defaults and runs the
program w/o user interaction. If I use the Scheduled Task
Wizard, all this does is open the program and wait for
user interaction. There should be an extension I can give
to the schedule task command line "C:\WINDOWS\SYSTEM32
\cleanmgr.exe" which will allow the program to execute
without user interaction.

If, this doesn't exist, then there should be an
schedulable, executable DOS command with options to
select the drive, etc., which will do the same thing
similar to the DOS commant "C:\WINDOWS\SYSTEM32
\defrag.exe c: -f" which runs the Disk Defragmenter.

Thanks much for your help.
 
Back
Top