Cleanmgr and Disks

  • Thread starter Thread starter nr
  • Start date Start date
N

nr

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?

Thanks for any assistance.
 
Hi ,

Simply as can be.

Click Start > All Programs > Accessories > System Tools > Disk Cleanup.

Or instead of left clicking on Disk Cleanup, right-click and click Send
To and then click Desktop (Create Shortcut). This way, Disk Cleanup will
always be available on your Desktop, if you wish it so.

Better than having to click or to type in the command always. Unless you
want to keep typing in the commands.
 
nr said:
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?

Thanks for any assistance.

Hi nr,

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
 
WTC said:
Hi nr,

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.
"
 
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.

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?
 
nr said:
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.
 
Back
Top