Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Change location of temporary files

more options

I want to change the location of the temporary files corresponding to the web pages I visit. It seems to be called the cache.

Right now those files are saved in

   C:\Users\userid\AppData\Local\Temp\

but my C drive is a SSD and I don't want them to be there.

Note: In about:config, I created a string

   browser.cache.disk.parent_directory

and set its value to

   D:\Temp\Firefox_temp\

but to no avail: the temporary HTML pages are still created in C:\Users\userid\AppData\Local\Temp\.

I want to change the location of the temporary files corresponding to the web pages I visit. It seems to be called the cache. Right now those files are saved in C:\Users\''userid''\AppData\Local\Temp\ but my C drive is a SSD and I don't want them to be there. Note: In about:config, I created a string browser.cache.disk.parent_directory and set its value to D:\Temp\Firefox_temp\ but to no avail: the temporary HTML pages are still created in C:\Users\''userid''\AppData\Local\Temp\.

被采纳的解决方案

To change the location of the System Temp folder, follow the steps given below.


1. Right click on Computer and click on Properties. In the resulting window with the basic information about your computer

2. Click on Advanced system settings on the left panel resulting in a dialog box click on the Advanced tab a

3. Click on the button near the bottom labeled Environment Variables.

4. You may see both TMP and TEMP listed in the section labeled User variables for (account). That's the common location; each different login account is assigned its own temporary location.

5. In the Variable value Edit box you may specify the path to the directory that Windows and many other programs will use for temporary files.


Be sure and repeat that process for both TMP and TEMP.

You'll need to restart any running programs for the new value to take effect. In fact, you'll need to restart Windows for it to begin using the new value for its own temporary files.

定位到答案原位置 👍 0

所有回复 (2)

more options

选择的解决方案

To change the location of the System Temp folder, follow the steps given below.


1. Right click on Computer and click on Properties. In the resulting window with the basic information about your computer

2. Click on Advanced system settings on the left panel resulting in a dialog box click on the Advanced tab a

3. Click on the button near the bottom labeled Environment Variables.

4. You may see both TMP and TEMP listed in the section labeled User variables for (account). That's the common location; each different login account is assigned its own temporary location.

5. In the Variable value Edit box you may specify the path to the directory that Windows and many other programs will use for temporary files.


Be sure and repeat that process for both TMP and TEMP.

You'll need to restart any running programs for the new value to take effect. In fact, you'll need to restart Windows for it to begin using the new value for its own temporary files.

more options

Thanks a lot. It works.

I'm surprised that Firefox does not give more granular control. I have to change the TEMP not only for Firefox, but for every other application. In my case, it's perfectly what I want, though.