Speed up Windows by moving the temp folder - gHacks Tech News

Speed up Windows by moving the temp folder

The default temporary directory in Windows is located on the same hard drive and partition as the operating system itself by default.

Depending on the speed of that drive, and the programs you run on it regularly, it may not be optimal to have the temporary folder located on the drive as well.

It is possible to speed up operations that require the temporary folder on Windows by moving it to another location on the system, preferably another drive. The main idea behind this is that the main hard drive does not have to process these temporary files which frees up resources for other operations. A similar technique is used to move the Pagefile and other core operating system files to another hard drive.

The temp folder is used to store temporary data, for instance extraction data of archives or during the creation of video DVDs or other data on the computer that is only required temporarily.

environment variablesenvironment variables edit temp

The process of changing the location is very simple and done in a matter of seconds.

  1. Press Windows-Pause (Break) and click on the Advanced link (Advanced System Settings).
  2. Click the Environment Variables button on the bottom and another window opens showing all variables. The important ones for use are the TMP and TEMP user variables as they are used by the user of the system. You may however change the system temp variables as well.
  3. Create a new directory manually on another hard drive, for instance f:\temp. Make sure there is enough disk space on the drive to hold temporary files.
  4. Mark the first variable now and select edit from the menu and change the default location to f:\temp or the location you have selected.
  5. Edit the second variable in the same way and click on ok.
  6. You should restart your computer afterwards.

You could then delete the old temporary directories because files in them are not deleted automatically if you change the location of the temporary folders on Windows.

Please note that the method works in all versions of Windows including the latest versions released (that is Windows 10 at the time of writing this update).

Speed up Windows by moving the temp folder
Article Name
Speed up Windows by moving the temp folder
Move temporary folders in the Windows operating system to another hard drive to speed up the performance of the system.

  • We need your help

    Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

    We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.

    If you like our content, and would like to help, please consider making a contribution:


    1. sarana said on July 11, 2007 at 11:48 pm


      When I open the Environmental Variables Window, I get two sections, both of which have temp folders defined. One section is called “User variables for temp” and the other is called “System variables.” Do you recommend changing the temp folders for both sections or which?

      Thanks for you blog.

    2. Martin said on July 12, 2007 at 10:59 am

      Just change the user variables, that should be enough.

    3. nuss said on July 12, 2007 at 1:20 pm

      hi martin, can you please explain the steps for german windows?

    4. gnome said on July 12, 2007 at 5:12 pm

      Blimey! It bloody works!

    5. Martin said on July 13, 2007 at 11:00 am

      nuss well I only have Vista at hand so here it is for Vista: you press Windows Pause, click on Erweiterte Systemeinstellungen, Umgebungsvariablen.

    6. nuss said on July 13, 2007 at 1:29 pm

      thx – does that mean it only works with vista?

    7. joesin said on July 17, 2007 at 4:43 am

      Joesin Says:
      Can I use an internal removable disk drive (like ZIP250) for moving the Temp Folder for Windows XP
      to this drive, while using only a 100MB disk.
      Is the 100MB disk capacity large enough for NORMAL use and operations to accommodate the need for Temp Files? Thank’s for the help in answering to this question.

    8. Martin said on July 17, 2007 at 8:52 am

      joesin well I did not try it. All I can say is that a USB drive is considerably slower than a hard drive which could affect system performance.

      Why don’t you just try it out and let us know how it worked out for you ?

    9. brian said on April 21, 2008 at 3:28 pm

      will there still be performance benefits (speed) if you move the directory to another partition on the same physical drive, or are there only benefits when moving it to another physical drive?

    10. Martin said on April 21, 2008 at 3:35 pm

      Brian only when you move it to another physical drive.

      1. Ken said on April 15, 2011 at 1:11 am

        Then — if it only works on a separate physical drive, then will I need to keep that drive plugged in all the time?

    11. brian said on April 21, 2008 at 3:59 pm

      thanks martin,
      would there be any benefit at all to moving the temp folder/directory to another partition on the same physical drive? at least might help w/ fragmentation i assume…

      thanks again

    12. Martin said on April 21, 2008 at 4:00 pm

      benefits would be minimal I think.

    13. Allan said on November 10, 2008 at 2:24 pm

      Thx for posting this!
      (and thx to google for finding it for me:)

    14. PBChhaya said on March 16, 2009 at 3:39 pm

      Martin..! I’m stuckup on Win NT server for space. Have reduce recyclebin space & moved temp. internet files to D partation. But How to I shift %Temp% folder to D Partation. Plz. Plz. save my soul. Tks.

    15. Anonymous said on May 12, 2009 at 12:53 pm

      Moving the temp folder is useful for people using an ssd especially those based on the jmicron controllers, the temp folder is used for several purposes such as for self extracting exe files which contain an installer, firefox apparently uses it for it’s temporary internet files, etc moving to a separate partition/drive to which you install your apps would likely improve performance when installing some applications and in some cases improve performance within some applications due to it reading from the temporary location and writing to a different location (rather than reading and writing to the same drive)

    16. blr said on August 22, 2009 at 4:25 am

      how do you do it on a keyboard without a ‘windows’ key?

    17. peter said on October 22, 2009 at 4:00 pm

      for the users with international systems (like my dutch windows xp) and peeps with no windows buttons or programmed pause|break break key.
      first make a folder named tmp on the decided drive and a folder named temp on the same spot
      rightclick my computer (in other languages “deze computer, dieser computer, ici d’ordinateur, etc)( just that computer logo with something with computer) witch is located on your desktop or in the start menu. and click the lowest option “Properties” (in other languages: eigenschappen, eigenskappe or so, etc.) go to the last tab telling advanced, geavanceerd, etc). just up the Ok button you see envirnomental variables (in dutch omgevingsvariabelen). change the 2 values on the upside in {diskdrive}:\temp and {diskdrive}:\tmp where {diskdrive} is the number windows has given to the drive (remember not to detach the drive while the computer is turned on!!!!! windows won’t be able to read and write anymore and more important when you tach another drive it might mashup the whole pathnames directory resulting the plugged drives bocomes that drive that the computer wants to read from witch leads to a crashing result :S) klick ok and check you made the folders again now go to start and restart your computer) tadaa finished

      beye and thanks for the guide martin

    18. Can you learn to talk? said on March 10, 2012 at 1:34 pm

      What does “push Windows Pause (break)” mean?
      You need to learn to speak AND describe the step as they are.
      EXACTLY as they are.

      1. boo said on July 26, 2012 at 10:08 pm

        1) “Push” means “to press down”
        2) “Windows” means the “Windows” Key on the keyboard. Usually ther is two. Pick one.
        3) “Pause (break) means the “Pause/Break” key on the key board. Usually on the top row of keys on the right side. Take a look. See it now?

        So “push Windows Pause (break)” translated to English means, press and hold the “Windows” Key, then press the “Pause/Break” key.


    19. Davinah said on March 24, 2013 at 5:50 pm

      Hi Boo,
      Thanks for explaining it in plain English
      what can we do without you:)

    Leave a Reply