How do I change the location for temporary files?

A. The are a number of "temp" variables, mainly temp and tmp and the values of these can be changed as follows:

  1. Start the System control panel applet
  2. Select the Environment tab
  3. Under "User Variables" select temp (or temp) and its value will be displayed. Modify it in the Value box and click Set.
  4. Once you have made all changes click Apply then OK

Alternatively you can directly edit the registry to make these changes

  1. Start the registry editor
  2. Move to HKEY_CURRENT_USER\Environment
  3. Double click on the variable, e.g. temp and edit the value. Once complete click OK
  4. Close the registry editor

A final method from the command line is to use the SET command

C:\> set temp=d:\temp

Most Windows applications such as Word check the variable 'tmp' for the location of temporary files and not 'temp' so make sure you modify 'tmp' and not just 'temp'.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.