ghacks Technology 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. This is not really optimized and you could speed up your operating system by moving the temporary folder from the default location to another hard drive.

The process is very simple and done in a matter of seconds. Press Windows Pause (Break) and click on the Advanced tab. 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.

Create a new directory manually on another hard drive, for instance f:\temp. Mark the first variable now and select edit from the menu and change the default location to f:\temp. Edit the second variable in the same way and click on ok. You should restart your computer afterwards.

You could then delete the old temporary directories because they just waste a lot of disk space.




Tags: , , ,
Categories: Operating Systems, Windows


Read Related Posts


18 Responses to “Speed up Windows by moving the temp folder”

  1. sarana says:

    Hi,

    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 says:

    Just change the user variables, that should be enough.

  3. nuss says:

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

  4. gnome says:

    Blimey! It bloody works!

  5. Martin says:

    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 says:

    thx – does that mean it only works with vista?

  7. joesin says:

    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 says:

    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 says:

    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 says:

    Brian only when you move it to another physical drive.

  11. brian says:

    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 says:

    benefits would be minimal I think.

  13. Allan says:

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

  14. PBChhaya says:

    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 says:

    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 says:

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

  17. peter says:

    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

Trackbacks/Pingbacks

  1. [...] The Temp Folder For Windows Performance Enhancement GHacks has quite a cool tip for speeding up Windows. Windows stores the temp folder in the same drive [...]

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

© 2005-2009 Ghacks.net. All Rights Reserved. Privacy Policy - About Us