Saturday, April 08, 2006

Relocate the "Temporary Internet Files" folder to a different drive

If you have a second hard drive and want to move the Temporary Internet Files to it instead of your C: drive just follow these directions.


Relocate the "Temporary Internet Files" folder to a different drive

To redirect the Temporary Internet Files location to a different drive, follow these steps:

1 Save and close all running applications

2 Create a folder in the destination drive (say F:\TIF)

3 Click Start, Run and type CONTROL INETCPL.CPL

4 In the Temporary Internet Files section, click Settings

5 Click Move Folder button and browse to the target folder

6 Click OK

7 Click Yes, when you see the prompt

"Windows will log you off to finish moving Temporary Internet Files. Do you want to continue ?"

Windows will now copy all the Cookies, temporary internet files to the destination folder and log you off. Log back in for the changes to take effect.


To accomplish this via the registry, alter the Shell Folders path for TIF

The above method is effective as it copies the contents of the current Temporary Internet Files folder to the new location. Whereas, relocating the Temporary Internet Files shell folders path via the registry does not copy the existing content to the new location.

Open Registry Editor by typing REGEDIT in Start, Run dialog

Navigate to the following registry key:

HKEY_CURRENT_USER \ Software Microsoft \ Windows CurrentVersion \ Explorer User Shell Folders

In the right-pane, double-click the value named Cache and set it's data to the new TIF folder
(F:\Temporary Internet Files)

Similarly, make the changes in this registry key:

HKEY_CURRENT_USER \ Software Microsoft \ Windows CurrentVersion \ Explorer \ Shell Folders

Close Registry Editor and log off. Login back for the changes to take effect. The TIF will be stored in the new location which you defined. The old TIF files can be deleted manually by navigating to this folder from Start, Run dialog: %userprofile%\Local Settings\Temporary Internet Files

No comments: