Questions about moving Windows temp files/folders to a separate physical drive

Cyber_Akuma

Distinguished
Oct 5, 2002
504
21
18,985
I was having many issues with out-of-memory errors and slow performance, a lot of it due to having to temporarily move my OS drive from the SSD array it was on to a 5400RPM drive for now and having to keep the swap file small.

SSDs have gone down in price, so I got a cheap small 128GB SSD that I am using just for temporary files for now, it has helped significantly. I figured that it would be useful even once I am back on a SSD to use this SSD for all my temporary data, but I wanted to know just how far I can go with that.

I know that for applications that themselves use a temporary folder, I will need to set that on a per-app basis, that's fine, I was talking purely about os-level temporary files/folders.

I already put the swap file there, that's easy to do. I have hibernation disabled for now since being a desktop I don't really need it, but I do know how to put it on the SSD if I need to. And I read this guide on moving the two standard temp folders:

https://www.howtogeek.com/285710/how-to-move-windows-temporary-folders-to-another-drive/

I still have four additional questions however:

1. Is there any actual user-saved data stored in these temp folders? I know that most of the user data is stored in the AppData folders, but I also know that apparently browsers make heavy use of these temp folders. Do they only put cached data and other such-non important information in there? Or would they also store bookmarks, or login cookies, etc in there? Information that would actually impact me if I were to lose it?

2. Are any of these necessary for Windows to start up properly or not lose anything between restarts? The issue is that I might also have to experiment with different operating system installs by swapping said drive, and I would like to re-use that SSD for temp data for all of them simply by wiping it since leaving temp data from another windows install/version could cause issues. I know that the swap file is not important between reboots, the hibernation file is but I have that disabled anyway, but I have no idea about the temp folders. Can those be deleted between reboots without issue? Also, would I still need to have the folders on the drive, but just empty, or will Windows simply re-create the temp folder that it has been set to if it does not exist?

3. Would I need to move the contents of the existing temp files to the other drive when I change the temp folder environment path?

4. And finally, are there any other OS-level temporary files/folders one can advise I can set to that spare drive?
 
What drive will your OS be on?
Don't bother moving the temp files location.

If you have an SSD of reasonable size, leave it on the SSD.
If you move to an HDD, that simply slows down the whole system performance when it needs to access that Temp location.
 
No no, the swap/temp files will be on a SSD. The OS is currently on a 5400RPM HDD temporary because the SSD array it's normally on is down for now. On top of that, I was running out of memory because the swap file was too small, which is why I want to toss it on a dedicated SSD and leave it at default settings. Windows sets it to a massive size on default settings that eats up a giant chunk of my OS drive.
 


How much RAM do you have?
Given sufficient RAM size, you can reduce the pagefile.

I've had my pagefile set to 1GB min/max for years. 16GB RAM to start, now 32GB.

If you have 8GB or less actual RAM, leave it as default.
 
32GB, I had it set to 8GB and it was constantly giving out of memory errors even though the RAM itself was barely 50% utilized. Windows loves to page.

Regardless though, that isn't really helping me, I wanted to know about using that SSD to put my temporary files on.
 


Having the Windows temp file/folder on a different drive can only slow things down.


In direct answer to your original questions:

1. The user has no need or direct use of what is in the Temp folder. The OS and/or browser uses that so that it does not have to go elsewhere every single time to retrieve some content.

2. No.

3. No.

4. Leave them on the default OS drive.
 

TRENDING THREADS