Configure cleanup profiles to remove unnecessary files

The Clean Up tool was introduced with Win98 to automate the procedure of cleaning up unnecessary temporary files. It is mainly for people who is having a hard time figuring out what they have on their drives. It has been updated in WinMe/2k/XP, where it is possible to setup different Clean Up profiles.

To configure a profile run the following command (Where N is a profile number from 0-65535):

cleanmgr /sageset:N

To run a configured profile number (N) run the following command:

cleanmgr /sagerun:N

This can be used to create a shortcut to clean up Temporary Internet Files, or schedule a weekly cleanup of the Recycle Bin using the Task Scheduler, or if using Windows 2000, XP schedule to Compress old files.

Note Win98/WinMe can also use profiles for configuring defrag and scandisk for scheduling.

Note Win2k/WinXP includes a new feature that Compress old files not used the last ? days, by using NTFS compression (blue files). Even if having this option disabled it might still do "Scanning: Compress old files", which can be slow and make it hang for a long time (It is also activated when doing a defrag). To disable it by force, delete the following registry keys (Make an export first):

[HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft \Windows \CurrentVersion \Explorer \VolumeCaches \Compress old files]

[HKEY_LOCAL_MACHINE \SOFTWARE \Classes \CLSID \{B50F5260-0C21-11D2-AB56-00A0C9082678}]

More Info MS KB812248
More Info MS KB886219

More Info MS KB186099
More Info MS KB253597
More Info MS KB269020
More Info MS KB310312



  1. arthur brogard says:

    How about cleaning out all the files that are normally part of a win98 installation but which aren't really needed? win98lite is down around 20meg or something. My win98 installation is using 250Meg of a 340Meg Hard Drive on my young child's computer. He's now down to 5meg of free space. If I could chuck out all the really un-needed stuff he'd probably have a hundred meg or something to play with.

    Just what is REALLY needed in a win98 installation?

  2. snakefoot says:

    arthur brogard
    Just what is REALLY needed in a win98 installation?

    This tip is mostly for automatic cleaning of temporary files. You kind of answers your own question by mentioning a utility that should be able shrink a Win98 install to a minimum. If you have problems using the utility then I recommend contacting the creator of the utility. Also instead of spending energy and time on minimizing the size of a Win98 install, then I would instead try to find a used 1-10 GB hard disk.

  3. ron duve says:

    thanks for the good information from here.

Leave a Reply

Your email address will not be published. Required fields are marked *