"nr" <(E-Mail Removed)> wrote in message news:e869b112-1cae-408e-9459-(E-Mail Removed)...
> On Feb 13, 2:13 pm, "Bill Blanton" <bblan...@REMOVEmagicnet.net>
> wrote:
>> "WTC" <bcrawfordjr(remove)@hotmail.com> wrote in messagenews:(E-Mail Removed)...
>> > nr wrote:
>>
>> >> I ran this command: cleanmgr /d c: /sageset:64 to assign number 64
>> >> to cleanmgr for my C disk. However, when I run this command:
>> >> cleanmgr /sagerun:64 it runs the clean up utility for all of my
>> >> disks. I also tried: cleanmgr /d c: /sagerun:64 but that did all
>> >> the disks also.
>>
>> >> How can I get this to run only for my C disk?
>> > From the following MS article,
>> > How to Automate the Disk Cleanup Tool in Windows XP
>> >http://support.microsoft.com/kb/315246
>>
>> > <quote>
>> > Note: The /d option is not utilized with /sagerun: n.
>> > </quote>
>>
>> > Try
>>
>> > cleanmgr /sagerunt:64
>>
>> I think /sagerun always runs on all drives, with no way around it. Furthur down
>> in the KB article you quoted-
>>
>> "
>> /sagerun: n - This option runs the specified tasks that are assigned to the n
>> value if you use the \sageset option. All drives on the computer are
>> enumerated and the selected profile runs against each drive.
>> "
>
> Good catch, I didn't see that. If sagerun runs on all disks, anyone
> know why sageset would have the /d option? It appears to be of no
> use.
I don't really know, but perhaps using /d was an easy way (code-wise) to
bring up the desired options on a particular drive. Then /sageset only has
to save the info to the registry and end the program.
> Does anyone know of a way to get commands into a BAT file to delete
> the History, Temp, and Temporary Internet Files folders in the Local
> Settings folder?
If using /sageset:64 to set up cleanmgr to delete %history%, %temp% and
the %TIF%,,, even though you see /sagerun:64 "opening" all the drives, it's
not doing anything on those other drives. Those particular %folders% only exist
in the one place.