Like on Facebook Share on Facebook on Twitter Reddit LinkedIn Pinterest
Newest Tips & Tricks...

Home :: Tips & Tricks :: Windows (misc)

Speedy Temp File Cleanup

A quick change to the Registry hastens the process of eliminating temporary files.

Any time I can help you do something faster and better in Windows, it makes my day. Today's tip is an undocumented feature that can help you save disk space and save time, too.

Reader Norman Vance likes to clean temporary files off his disk periodically. But he hates the long, unnecessary wait while Windows' own tools calculate various compression ratios that might apply to his hard drive.

"Since moving to Windows 2000, and now Windows XP, I've found the Disk Cleanup button on the General tab of my hard drive's Properties sheet a pain instead of a plus," Vance says. "Even though I've never turned on the 'Compress drive to save disk space' option, I still must wait long, agonizing minutes while my drive is scanned for potential space savings. This may have been appropriate default behavior when drives were small and rapidly filling. But in the modern age of dollar-per-gigabyte hard drives, why assume I want to save a few megabytes by compressing files?"

The secret, if you don't wish to compress space but you do want to delete temporary files, is to eliminate Disk Cleanup's lengthy calculation of the possible savings from compression. This involves changing a value in the Registry.

Step 1. Click Start, Run. In Windows 2000 or XP, type Regedt32.exe and click OK.

Step 2. In Regedt32, select the HKEY_LOCAL_MACHINE pane, then select the Software folder. Pull down the Registry menu, and then click Save Key to back up this folder for safekeeping.

Step 3. Double-click each folder to open the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files.

Step 4. In the right pane, double-click the REG_SZ key to edit it. Save the value in case you wish to restore it later. It reads B50F5260-0C21-11D2-AB56-00A0C9082678. Press Delete to remove the value, then click OK. Close Regedt32.

Now, right-click a hard

Source: Brian Livingston, Window Manager

Recommended Links...