Windows – Is it safe to change %TEMP% and %TMP% to a custom location

environment-variablestemporary-fileswindows 7

I have an SSD drive that is nearly full and I'm looking for options to free up space. I noticed C:\Users\myusername\AppData\Local\Temp has several gigs of data. Is it safe to change the User environment variables %TEMP% and %TMP% to point somewhere else (e.g. D:\temp, if D is my other disk with more space)?

Also what about changing the system environment variables of the same name to also point to D:\temp?

Edit
Ideally the best answer would include a reference to an article or documentation.

I did find this documentation from Microsoft talking about making the change on an exchange server: Move Temp and TMP Directories

Best Answer

As long as you coherently manage to redirect everything, yes, it is safe.

I would suggest looking for a guide for how to do that, just to make sure you don't miss anything, although I believe what you have suggested there should be sufficient.

EDIT (for reference): From the command prompt (cmd.exe) (you don't need to be an administrator), type SETX TEMP D:\Temp and press Enter

Related Question