SPECIFYING DISK CLEANUP
CONFIGURATION SETTINGS
If you run Windows XP's Disk Cleanup utility regularly in order to keep
your hard disk free from clutter, you may have wished that there was
a way to save your settings so you wouldn't have to reconfigure the
utility each time you run it. Fortunately, there is a method for saving
your settings, but the steps for doing so are undocumented. Here's how:
1. Access the Run dialog box by pressing [Windows]R.
2. In the Open text box, type the following command:Cleanmgr /d x: /sageset:#
In this command line, Cleanmgr is Disk Cleanup's executable file
name; /d x: is the letter of the drive you want to clean; /sageset
is a special configuration command that tells Disk Cleanup to save
the settings in the registry; and # is a unique number from 0 to 65,535
that designates a unique configuration settings file. For example,
you could create your first configuration settings file for drive
C by typing Cleanmgr /d C: /sageset:1 in the Open text box.
3. When you see the Disk Cleanup Settings dialog box, select the check
boxes next to the categories of files that you'd want to remove from
your hard disk.
4. Click OK to save the settings in the registry.
5. To run Disk Cleanup using the saved settings, type the following
command:
Cleanmgr /sagerun:#
In this command line, Cleanmgr is Disk Cleanup's executable file name;
/sagerun is a special configuration command that tells Disk Cleanup
to retrieve the saved settings from the registry; and # is the number
you used to designate your configuration settings file.
|