SoftPerfect RAM Disk

How move temp files to RAMdisk

Started by mraksoll

How move temp files to RAMdisk   06 May 2020, 19:32

How can I move temp files to RAMdisk?
When I try moving them in Windows 10 1909, programs and Windows ignore the new variables (simply not create any temp files in ramdisk temp folder).
If I point the variables to physical hard-drive, all work perfectly. Why is this happening?
SoftPerfect Support forum - Andrew avatar image

Re: How move temp files to RAMdisk   06 May 2020, 22:28

We explained how to redirect temporary folders to a RAM Disk in this article.

If it's not working for you, then perhaps you did something incorrectly. Since you have not provided any details, it's not possible to tell what it might be.

Re: How move temp files to RAMdisk   07 May 2020, 00:42

It doesn't work with the latest Windows 10 update. No symlink, and no variable.
I tried it with freshly installed Windows 10 Pro. It doesn't work with any RAMdisk product, not only with yours.
SoftPerfect Support forum - Andrew avatar image

Re: How move temp files to RAMdisk   07 May 2020, 11:31

What's your exact Windows version and build number?

Re: How move temp files to RAMdisk   07 May 2020, 19:44

Version 1909, build 18363.815, with latest updates installed.
Tested with variables, and with symlink.
With the real HDD / SDD it works, with ramdisk volume does not.
SoftPerfect Support forum - Andrew avatar image

Re: How move temp files to RAMdisk   07 May 2020, 22:10

I have tested this in exactly the same build and it worked as expected:

SoftPerfect support forum


By the way, the temp folder must exist on the RAM disk. Windows will not create it automatically. So, please make sure you have the temp folder added in Create Folders field in the RAM disk's settings. For example:

SoftPerfect support forum

Re: How move temp files to RAMdisk   07 May 2020, 22:43

Test with system temp variable, the one in windir/temp. For example you can try install vmware or other software what uses windir/temp variable.

Most antivirus solutions use it for temporary data and sometimes for high load network or changes in file system that can generate huge amounts of writes. Example: esetnod32 can do over 200gb writes to windir/temp.

I mean local software, not current user.
SoftPerfect Support forum - Andrew avatar image

Re: How move temp files to RAMdisk   08 May 2020, 10:12

We don't recommend changing the system variables to a RAM disk.

The system temp variable is used by services and kernel drivers. It's likely to be used before the RAM disk is initialised and ready, and can cause the programs that use it to fail because the temp location would be invalid. They may fall back to using a different location, like %SystemRoot%\Temp, which is probably what you are seeing.

So, only change the user's TEMP and TMP environment variables, to avoid any potential issues.

Re: How move temp files to RAMdisk   11 May 2020, 00:26

The problem is need move the system windows/temp folder. My antivirus can create 100+ gb data when in use in multiple 1-20 mb files. Moving system temp is more important to me than user temp.
SoftPerfect Support forum - Andrew avatar image

Re: How move temp files to RAMdisk   11 May 2020, 09:41

I am afraid there is nothing RAM Disk can do: it is just how Windows operates and lets other programs to operate. There is no sure way to point the system temp variables to a RAM disk. Depending on your hardware, drivers, OS and other software installed, and how/when they load on boot, moving system temp to a RAM disk may work perfectly well, or may cause errors, even BSOD. We have seen both scenarios on different computers during our tests.

You can try adjusting your antivirus settings, or contact its technical support, or try marking its services as delayed start, or use a different antivirus.

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 ********   **     **  ********   ********         ** 
 **     **  **     **  **     **  **     **        ** 
 **     **  **     **  **     **  **     **        ** 
 **     **  *********  **     **  ********         ** 
 **     **  **     **  **     **  **         **    ** 
 **     **  **     **  **     **  **         **    ** 
 ********   **     **  ********   **          ******  

Message: