Can I move my TEMP and TMP data to a RAMDisk?

Hi,

I have a RamDisk setup on my computer and want to know if I will run in to any problems if I move my windows TEMP directory to it?
 

Question Info


Last updated August 31, 2019 Views 39,920 Applies to:
Answer
Answer

There are two TEMP directories. One is C:\Windows\Temp and another is C:\Users\username\AppData\Local\Temp

You can move both of them without any problem but you need to set the correct environment variable.

Step 1 - Move the TEMP folder to your RAMDisk.

Step 2 - Click Start menu, right-click My Computer, and select Properties. Select Advanced System Settings. You might need to confirm a UAC prompt. Then click the Environment Variables button.

Step 3.A - If moving the C:\Windows\Temp folder, look under System variables and find TEMP and TMP variables. Change both their values to the path of the Temp folder on your RAMDisk.

Step 3.B - If moving C:\Users\username\AppData\Local\Temp folder look under User variables and find TEMP and TMP variables.  Change both their values to the path of the Temp folder on your RAMDisk.

Step 4 - Confirm the change by clicking OK.

16 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.