JSI Tip 8823. Additional information on preventing Windows 2000 Disk Cleanup from hanging during the 'Compress old files' process.

I first addressed this issue in tip 5920 ยป How do I speed up Disk Cleanup or possibly prevent it from hanging?

Another cause of this problem can be that Disk Cleanup starts compressing files in the system cache, and some of these files are being used during the compression.

To prevent this behavior:

1. Copy / Paste the following to a CompressOldFiles.reg file:



2. Merge the CompressOldFiles.reg file with your registry, or run regedit /s CompressOldFiles.reg.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.