Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Windows TEMP folder keeps changing back to default

13 Dec 2014   #1

Windows 7 Ultimate x64
Windows TEMP folder keeps changing back to default

Hello Everyone

I installed windows on a new SSD drive, so i wanted to keep the "writing" on in on minimum.
I changed the paths to the temp folder in the "Environment Variables" window to a new one.
The problem is that the new temp folder works only for 1 restart, after the second one it uses the same default folder as before. After 1 restart the paths are already changed to the default value.
How can i make the changes permanent?


My System SpecsSystem Spec
11 Jan 2015   #2

x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem

How are you changing the Environment variable.

If you're doing it in a command prompt, that won't 'stick'

Right Click Computer
Select properties (bottom of the context menu)
Select Advanced system settings (left hand side of the window)
Press the [Environment Variables...] button (bottom right of window)

The top section shows the user variables
edit TEMP and change to the location you want
edit TMP so that it matches the location you supplied for TEMP

You have to do both :)
Press the [OK] button

Rename the temp folder under your user profile to x-temp

I think it's immediate, but a restart showed the issue before, so test a restart.

that should do it.
My System SpecsSystem Spec
19 Jan 2015   #3

Windows 7 Ultimate x64

I did the temp folder change on many pcs before, just that this one keeps resetting it.
Thanks Slartybart, i will try to rename the user temp folder under appdata/local after i change the paths.
A very weird "error" that ive never encountered before, like the windows declines the changes at any cost. you are the first who comes with a possible solution for it for months.
thank you for the detailed description, even how to press the "ok" button. :)
As soon i tried it i will tell the results.
My System SpecsSystem Spec

19 Jan 2015   #4

x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem

You might want to look at the system environment variables too.
The system environment variables for TEMP and TMP should point to Windws\TEMP

An easy way to see all of your environment variables is to open a command prompt and enter the command set

To see what the system thinks about environment variables, open an elevated command prompt (right click, Run as administrator) and enter the command set
My System SpecsSystem Spec

 Windows TEMP folder keeps changing back to default

Thread Tools

Similar help and support threads
Thread Forum
Changing the toolbar back to the default.
I did an upgrade and my toolbar went to the classic style. How do I change it back to the one with the round start key?
Changing location of TEMP folder.
Hello 7forums. This is my first post on this great forum, so hello to everybody! I want to know how can I change the location of TEMP folder to delete manually those files which remain there and loads the memory of my PC. And I got another question: what to do immediately after installing...
General Discussion
How do I change the default location for temp burn folder?
I tried the recording tab for in properties of the drive and it didn't do anything. I haven't found one single decent tutorial online to mess with my regedit, I will mess it all up. I have a small master drive and terabytes of externals, I just want to move any burn folders to my larger drives...
changing windows folder from default c:\Windows to another location
I am thinking about changing the default Windows folder (c:\Windows) to another location, in particular to another drive. I first thought that it should be possible just by changing the values in the registry for windir and systemroot and making a robocopy of the windows folder to the new...
Performance & Maintenance
Unable to Locate and Recapture Files in Win7's Default Temp D/L Folder
Where or how can I 'locate' and 'move or copy' downloaded files in Win7 x64 Home Prem's Temporary Download Folder. Sometimes I forget to save a file d/l and remember later that I really needed it. Can anyone please assist to provide the path and advice for locating and retrieving these...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:37.
Twitter Facebook Google+