Windows XP Community - XPHeads



Auto Run Disk Clean up

microsoft.public.windowsxp.perform_maintain


Reply
  #1 (permalink)  
Old 05-21-2008, 10:30 PM
Dylan
 
Posts: n/a
Auto Run Disk Clean up
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-21-2008, 11:06 PM
Nepatsfan
 
Posts: n/a
Re: Auto Run Disk Clean up
"Dylan" <Dylan@discussions.microsoft.com> wrote in message
news:2B7E94E6-072D-497D-86BB-C2E0F2838B34@microsoft.com...
> 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...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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-22-2008, 08:28 PM
Dylan
 
Posts: n/a
Re: Auto Run Disk Clean up
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:

> "Dylan" <Dylan@discussions.microsoft.com> wrote in message
> news:2B7E94E6-072D-497D-86BB-C2E0F2838B34@microsoft.com...
> > 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...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
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-22-2008, 08:49 PM
Shenan Stanley
 
Posts: n/a
Re: Auto Run Disk Clean up
Dylan wrote:
> 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.
>
> 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


Dylan wrote:
> 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.)

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-22-2008, 09:00 PM
Nepatsfan
 
Posts: n/a
Re: Auto Run Disk Clean up
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...
> 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:
>
>> "Dylan" <Dylan@discussions.microsoft.com> wrote in message
>> news:2B7E94E6-072D-497D-86BB-C2E0F2838B34@microsoft.com...
>> > 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...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
>>
>>
>>




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:07 PM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74