I have installed the SoftPerfect RAM Disk application, made a disk in my RAM and put the folder path for the temp files to be stored in it (R:\temp in both fields).
When I check the path C:\Windows\Temp, the temp files are still created there. Am I doing something wrong?
Thanks.
All Forums
> RAM Disk
> Current topic
How to move Windows Temp files to RAM disk
Started by Konstadinos
Konstadinos
How to move Windows Temp files to RAM disk 09 August 2021, 20:57 |
Re: How to move Windows Temp files to RAM disk 09 August 2021, 23:20 |
Admin Registered: 18 years ago Posts: 3 518 |
There are two kinds of TEMP environment variables in Windows: user-level and system-level. The former is used by regular applications you launch. The latter is used by the system and services.
When you change the TMP/TEMP variables from the RAM Disk app, it only modifies the user-level variables. This is done for safety, because the system-level temporary folders are crucial for normal operation. If system-level variables point to a RAM disk and for some reason the disk is not available, the system may fail or refuse to boot.
It is possible to override this manually and redirect the system-level TMP/TEMP to a RAM disk, but there is a risk of breaking the system. In most cases it should work fine though. If you want to try it out or inspect the variables, press Win + R (Run), type sysdm.cpl, then go to Advanced - Environment Variables:
When you change the TMP/TEMP variables from the RAM Disk app, it only modifies the user-level variables. This is done for safety, because the system-level temporary folders are crucial for normal operation. If system-level variables point to a RAM disk and for some reason the disk is not available, the system may fail or refuse to boot.
It is possible to override this manually and redirect the system-level TMP/TEMP to a RAM disk, but there is a risk of breaking the system. In most cases it should work fine though. If you want to try it out or inspect the variables, press Win + R (Run), type sysdm.cpl, then go to Advanced - Environment Variables:
Konstadinos
Re: How to move Windows Temp files to RAM disk 10 August 2021, 21:34 |
Re: How to move Windows Temp files to RAM disk 12 August 2021, 16:33 |
Admin Registered: 10 years ago Posts: 889 |
Yes, moving just the user TEMP/TMP variables to the RAM disk will still help to reduce writing to your SSD while preserving the stability of the system.
The exact degree to which your SSD will be spared user-related writing operations would depend on what you use your computer for. If you do a lot of Internet browsing or use software products that generate large volumes of temporary files, the difference can be quite big.
The exact degree to which your SSD will be spared user-related writing operations would depend on what you use your computer for. If you do a lot of Internet browsing or use software products that generate large volumes of temporary files, the difference can be quite big.
Re: How to move Windows Temp files to RAM disk - Using batch files 13 September 2021, 04:25 |
Registered: 8 years ago Posts: 19 |
I would suggest reading this old thread on how to use batch files to redirect TEMP/TMP content to a RAMdisk. It's a long thread, but well worth the read.