- Auto Run Disk Clean up
- Posted by Dylan on May 21st, 2008
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!
- Posted by Nepatsfan on May 21st, 2008
"Dylan" <Dylan@discussions.microsoft.com> wrote in message
news:2B7E94E6-072D-497D-86BB-C2E0F2838B34@microsoft.com...
Take a look at these articles.
How to Automate the Disk Cleanup Tool in Windows XP
http://support.microsoft.com/default...B;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
- Posted by Dylan on May 22nd, 2008
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.
"Nepatsfan" wrote:
- Posted by Shenan Stanley on May 22nd, 2008
Dylan wrote:
Nepatsfan wrote:
Dylan wrote:
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.)
--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
- Posted by Nepatsfan on May 22nd, 2008
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
"Dylan" <Dylan@discussions.microsoft.com> wrote in message
news:50F24870-9753-4E70-A164-8F10483E424C@microsoft.com...