In this tutorial, I show you how to move the Temporary Files (TEMP) folder in Windows 11 .

What are temporary files?

Temporary files are generated by the operation of the system, browsers, application installations that we do and by updates. It is advisable to always delete them periodically to save space on the hard disk and have the system a little more optimized.

Where are temporary files stored in Windows 11?

By default, temporary files are stored in two locations:

% systemdrive% \ Windows \ Temp
% userprofile% \ AppData \ Local \ Temp

When you go to the temporary files folder at C: \ Windows \ Temp , a warning message will appear: ” You do not have the required permissions to access this folder  “.

You can ignore this message, and click ” Continue ” to view the contents of the folder.

temp message avertissement windows 11

You will notice that the temporary files folder contains folders and files with extensions to .tmp, .temp, or .log. And if you open a few files, you can quickly realize that they are absolutely useless, since they are totally empty …

Windows 11 Temp Folder

On the other hand, you also have the C: \ Users \ Username \ AppData \ Local \ Temp folder which is created for each user. The latter also contains all kinds of temporary files created by applications used by the user.

Windows 11 User Temp Folder

How do I move the temporary files folder to another drive?

If you have a small size SSD as the primary drive, it is recommended that you move the temporary files folder. On the one hand, this avoids unnecessary writes to the disk, even if today their lifespan has been significantly extended. And on the other hand, you will save space on your disk.

See also  Make Windows more secure by disabling certain features with Hardentools

1. First, start by creating a new folder that will house future temporary files. To do this, go to File Explorer.

ouvrir explorateur de fichiers barre des taches windows 11

2. In the left sidebar, click “ This PC ”.

ce pc explorateur de fichiers windows 11

3.  Double-click on the disk that will host the future temporary files.

disque explorateur de fichiers windows 11

4. Then create a new folder. To do this, right click, then select ” New “, and ” Folder “.

nouveau dossier explorateur de fichiers windows 11

5. Name your new folder, for example ” TEMP “.

Create a new TEMP folder on a hard drive or SSD

6. Next, press the Windows+ keys simultaneously Rto open the Run dialog box, then type the following command, and click “ OK ” or press Entrée.

systempropertiesadvanced executer windows 11

7. From the “ System Properties ” window , click on “ Environment Variables ”.

deplacer dossier fichiers temporaires windows 11 image 1

8. Under ” User variables “, select the TEMP variable and click on the ” Modify ” button .

Change the location of the temporary files folder for the user

9. Enter the path to the folder to use on the hard drive for temporary files and click “ OK ”.

Move the TEMP folder in Windows 11

10. Repeat the operation for the TMP variable .

Move the TMP folder in Windows 11

11. Now, under “ System Variables ”, select the TEMP variable and click on the “ Modify ” button .

Move the temporary files folder in Windows 11

12. Enter the new path to the folder that will contain the temporary files and click “ OK ”.

Change the location of the TEMP folder in Windows 11

13. Repeat the operation for the TMP variable , still under ” System variables “.

Change the location of the TMP folder in Windows 11

Now ! Temporary files will now be stored in the location you defined.

I hope you enjoyed this article

If you liked this article, please subscribe to our reddit community to discuss it. You can also find us on Twitter and Facebook.

5/5 - (4 votes)

Tagged in:

About the Author

SAKHRI Mohamed

Founder & Editor

Passionate about the web, new technologies and IT, I share on easy-tutorials.com tutorials, tips, advice, online tools and software for Windows, Mac and Linux. I'm the founder of this blog and I'm very interested in anything to do with technology, but I also love playing games. I was born in Constantine, but now I live in Algiers/Algeria

View All Articles