Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows XP / Performance and Maintainance / May 2008

Tip: Looking for answers? Try searching our database.

Auto Run Disk Clean up

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dylan - 21 May 2008 23:30 GMT
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!
Nepatsfan - 22 May 2008 00:06 GMT
> 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
Dylan - 22 May 2008 21:28 GMT
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.

> > 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
[quoted text clipped - 14 lines]
>
> Nepatsfan
Shenan Stanley - 22 May 2008 21:49 GMT
> 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

Nepatsfan wrote:
> Take a look at these articles.
>
[quoted text clipped - 4 lines]
> 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.)

Signature

Shenan Stanley
    MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html

Nepatsfan - 22 May 2008 22:00 GMT
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

> 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
[quoted text clipped - 21 lines]
>>
>> Nepatsfan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.