How do I change the location for temporary files?

John Savill

March 4, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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_USEREnvironment

  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'.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like