有两种方法,第一种是直接在IE的Internet 选项中修改,步骤如下:
(有问题的话可以给我发电子邮件,最近比较忙,没有时间细心翻译)
1:在开始-运行中输入CONTROL INETCPL.CPL
2:In the Temporary Internet Files section, click Settings
3:Click Move Folder button and browse to the target folder
4:Click OK
5:Click Yes, when you see the prompt
"Windows will log you off to finish moving Temporary Internet Files. Do you want to continue ?"
点击OK,就可以了。
第二种方法是通过修改注册表(PS:这样就很容易通过编程实现了)
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 (E:/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