Auto Run Disk Clean up

D

Dylan

Any tips on how I can set up Disk Clean to autorun. I've tried using the
scheduled tasks. It will open the disk clean up utility but then you have to
select a number of options. I would like to set it up to run completely
automated with out any user interaction. Any advice would be greatly
appreciated. Thanks!
 
N

Nepatsfan

Dylan said:
Any tips on how I can set up Disk Clean to autorun. I've tried using the
scheduled tasks. It will open the disk clean up utility but then you have to
select a number of options. I would like to set it up to run completely
automated with out any user interaction. Any advice would be greatly
appreciated. Thanks!

Take a look at these articles.

How to Automate the Disk Cleanup Tool in Windows XP
http://support.microsoft.com/default.aspx?scid=KB;en-us;315246

Courtesy of Ramesh Srinivasan, MS-MVP
Automate Disk Cleanup using Task Scheduler in Windows XP
http://windowsxp.mvps.org/Automate.htm

Good luck

Nepatsfan
 
D

Dylan

Hi, Thanks for the response and pointing me towards the articles. I tried to
follow the directions in the articles however I'm still having the same
problem. When the Task Scheduler opens the disk clean up utility it asks you
to select a drive and then select what type of files you want cleaned up. Are
there any tips or tricks that I may be missing? Thanks again for the help.
 
S

Shenan Stanley

Dylan said:
Any tips on how I can set up Disk Clean to autorun. I've tried
using the scheduled tasks. It will open the disk clean up utility
but then you have to select a number of options. I would like to
set it up to run completely automated with out any user
interaction. Any advice would be greatly appreciated
Take a look at these articles.

How to Automate the Disk Cleanup Tool in Windows XP
http://support.microsoft.com/default.aspx?scid=KB;en-us;315246

Courtesy of Ramesh Srinivasan, MS-MVP
Automate Disk Cleanup using Task Scheduler in Windows XP
http://windowsxp.mvps.org/Automate.htm
Thanks for the response and pointing me towards the articles. I
tried to follow the directions in the articles however I'm still
having the same problem. When the Task Scheduler opens the disk
clean up utility it asks you to select a drive and then select what
type of files you want cleaned up. Are there any tips or tricks
that I may be missing? Thanks again for the help.

Tricks? Just follow the directions given on the first link...

How to Automate the Disk Cleanup Tool in Windows XP
http://support.microsoft.com/kb/315246

Example:
cleanmgr.exe /d c:
As the scheduled task command would run disk manager on the C: drive with
default settings.

Or you could make selections using sageset and then call those selections
using sagerun...
http://www.edbott.com/weblog/?p=1274
(Alluded to in the original article - Google for more examples.)
 
N

Nepatsfan

What may have happened is that you don't have /sagerun:n added to cleanmgr.exe
in your scheduled task. The article from Microsoft doesn't make a point of how
that is done. On that note, try the following;

Go to Control Panel and open the Scheduled Tasks folder. Right click the icon
representing your Disk Cleanup job. Select Properties from the menu. On the Task
page, check what's listed in the Run box. It should be similar to this,

C:\WINDOWS\system32\cleanmgr.exe /sagerun:n

Note: Replace n with the number you used when you ran cleanmgr.exe /sageset.

If that doesn't fix the problem, do the following;

Go to Start -> Run and enter the following command in the Open box. Note: You
should change n to an integer between 0 and 65535.

cleanmgr.exe /sageset:n

This should launch Disk Cleanup Settings. Make the selections you want and click
OK.

Set up your Scheduled Task. Once you've finished, follow the procedure outlined
earlier to add /sagerun:n after cleanmgr.exe in the properties sheet of your
Disk Cleanup job.

Good luck

Nepatsfan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

disk clean up 2
Scheduled disk cleanup 5
disk clean up 1
Disk clean up will not start 1
auto disk defrag 1
disk clean up 1
Format Hard Drive & Clean Install of XP Pro 10
disk clean up 2

Top