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.
Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.Related Articles:
Clear Temp Files on Windows Mobile Pocket PCsUse a Ramdisk to speed up Applications
Moving The Firefox Disk Cache To Another Drive
Microsoft Outlook Temp Cleaner
Edit Environment Variables and find invalid ones

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.
Just change the user variables, that should be enough.
hi martin, can you please explain the steps for german windows?
Blimey! It bloody works!
nuss well I only have Vista at hand so here it is for Vista: you press Windows Pause, click on Erweiterte Systemeinstellungen, Umgebungsvariablen.
thx – does that mean it only works with vista?
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.
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 ?
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?
Brian only when you move it to another physical drive.
Then — if it only works on a separate physical drive, then will I need to keep that drive plugged in all the time?
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
benefits would be minimal I think.
Thx for posting this!
(and thx to google for finding it for me:)
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.
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)
how do you do it on a keyboard without a ‘windows’ key?
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