Tech Support Forum banner
Not open for further replies.
1 - 4 of 4 Posts

· Watching from the shadows
1,143 Posts
Discussion Starter · #1 ·
I am unable to successful run the disk clean up function for window XP iut gets to the search old compressed files and freezes. I have tried to do this on safe mode too but still hangs and my computers performance after I cancel it is brought down to almost nill. So I end up having to reboot. Does anyone have any other solutions for me or a free download that has the same functionality as disk cleanup. Thanks in advance.

· Registered
1,483 Posts
try this

How to Automate the Disk Cleanup Tool in Windows XP
The information in this article applies to:
Microsoft Windows XP Home Edition
Microsoft Windows XP Professional

SUMMARYThis article describes how use command-line options to configure the Disk Cleanup tool (Cleanmgr.exe) to automatically clean up certain files.
MORE INFORMATIONCleanmgr.exe is designed to clear unnecessary files from your computer's hard disk. You can use command-line options to specify that Cleanmgr.exe cleans up certain files. You can then schedule the task to run at a specific time by using the Scheduled Tasks tool.

To start the Disk Cleanup tool, either run the Cleanmgr.exe command, or click Start, point to Programs, point to Accessories, point to System Tools, and then click Disk Cleanup.

Disk Cleanup supports the following command-line options:
/d driveletter: - This option specifies the drive that you want Disk Cleanup to clean.
/sageset: n - This option displays the Disk Cleanup Settings dialog box and also creates a registry key to store the settings that you select. The n value, which is stored in the registry, allows you to specify tasks for Disk Cleanup to run. The n value can be any integer value from 0 to 65535. To have all of the options available when you use the /sageset option, you might need to specify the drive where Windows is installed.
/sagerun: n - This option runs the specified tasks that are assigned to the n value if you use the \sageset option.

For example, in Scheduled Tasks, you could run the following command after you run the cleanmgr /sageset:11 command:
cleanmgr /sagerun:11
This command runs Disk Cleanup and includes the options that you specified with the cleanmgr /sageset:11 command.
The options for the files that you can specify for Disk Cleanup by using /sageset and /sagerun include:
Temporary Setup Files - These are files that were created by a Setup program that is no longer running.
Downloaded Program Files - Downloaded program files are ActiveX controls and Java programs that are downloaded automatically from the Internet when you view certain pages. These files are temporarily stored in the Downloaded Program Files folder on the hard disk. This option includes a View Files button so that you can see the files before Disk Cleanup removes them. The button opens the C:\Winnt\Downloaded Program Files folder.
Temporary Internet Files - The Temporary Internet Files folder contains Web pages that are stored on your hard disk for quick viewing. Disk Cleanup removes these page but leaves your personalized settings for Web pages intact. This option also includes a View Files button, which opens the C:\Documents and Settings\ Username\Local Settings\Temporary Internet Files\Content.IE5 folder.
Old Chkdsk Files - When Chkdsk checks a disk for errors, Chkdsk might save lost file fragments as files in the root folder on the disk. These files are unnecessary.
Recycle Bin - The Recycle Bin contains files that you have deleted from the computer. These files are not permanently removed until you empty the Recycle Bin. This option includes a View Files button that opens the Recycle Bin.
Temporary Files - Programs sometimes store temporary information in a Temp folder. Before a program quits, the program usually deletes this information. You can safely delete temporary files that have not been modified within the last week.
Temporary Offline Files - Temporary offline files are local copies of recently used network files. These files are automatically cached so that you can use them after you disconnect from the network. A View Files button opens the Offline Files folder.
Offline Files - Offline files are local copies of network files that you specifically want to have available offline so that you can use them after you disconnect from the network. A View Files button opens the Offline Files folder.
Compress Old Files - Windows can compress files that you have not used recently. Compressing files saves disk space, but you can still use the files. No files are deleted. Because files are compressed at different rates, the displayed amount of disk space that you will gain is approximate. An Options button lets you specify the number of days to wait before Disk Cleanup compresses an unused file.
Catalog Files for the Content Indexer - The Indexing service speeds up and improves file searches by maintaining an index of the files that are on the disk. These Catalog files remain from a previous indexing operation and can be deleted safely.
If you specify cleaning up the drive that contains the Windows installation, all of these options are available on the Disk Cleanup tab. If you specify any other drive, only the Recycle Bin and Catalog files for content index options are available on the Disk Cleanup tab.

The More Options tab contains options for cleaning up Windows components or installed programs.
The Windows Components option creates free space by removing optional Windows components that you do not use. Clicking Clean Up starts the Windows Components Wizard.
The Installed Programs option frees more disk space by removing programs that you do not use. Clicking Clean Up starts the Change or Remove Programs option in the Add/Remove Programs tool.
First Published: Dec 20 2001 12:48PM
Keywords: kbtool kbinfo manager

· Registered
31 Posts
I too had that exact same problem. I have the fix procedure at home and will post it tonight. If you can't wait you can do a google search and will likely find it there.

· Registered
31 Posts
The fix...

This worked for me with one exception: If you import the files back after you have emptied the folder, the problem returns. I left them out, but because I'm a novice, I saved them just in case. I'm posting the fix just as I received it. It is pretty easy and straight forward. Worked for me! Here it is...

This might work for you (if the computer hangs at 'scanning compressed files stage'):

1. Type Regedit in Start - Run
2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Volume
3. Export "Compress Old Files" folder (via right click)
4. Delete all entries in this folder
5. Reboot
6. Run Disk Cleanup
7. Import previous exported keys (by doubleclicking on exported .reg file)
1 - 4 of 4 Posts
Not open for further replies.