For some reason or another, you may want to change the location or drive that TEMP files are stored in. TEMP files are just that: temporary files containing temporary information while a new file is being made. In some cases, they can take up a good chunk of space, which can be a problem if you use an SSD as your primary drive to load your operating system or other programs faster than a mechanical hard drive traditionally would.

With that in mind, you might want to reserve that SSD space for something more important. So, we’re going to show you how you can get your TEMP files to save themselves on a different drive. Be sure to follow along below.

Moving your TEMP files to a different drive

First, you’ll want to open up the Start menu and type in Control Panel. You’ll want to press Enter to open the menu. From there, you’ll want to select the System property.

Next, select Advanced system properties in the left-hand pane.

Now, we’ll want to navigate to the Advanced tab and select the Environment variables button. This opens up the Environment Variables menu.

It’s worth noting that any changes we make in this menu are user-reliant. In other words, any changes we make here is only going to take affect for the current user. If you have multiple users on your account, you’ll need to follow these steps again for each user.

Under the User variables section, we’re going to edit both TEMP and TMP variables. You’ll want to select one of them and press the Edit button. From there, you’ll get the Edit User Variable menu.

You can press the Browse Directory button to change the directory that TEMP/TMP files are stored to. Or, if you already know the file path, you can simple enter that in the Variable value field. Again, you’ll need to repeat this process for both TEMP and TMP variables.



And that’s all there is to it! Now all of your temporary files will save to the new directory you pointed the variables to save to. Keep in mind that, in order for these changes to take affect, you’ll need to fully restart Windows.

If you got stuck or need some additional help, be sure to leave a comment below or join us over in the PCMech Forums!