Microsoft KB Archive/74747

= Microsoft development tools use the TMP environment variable for temporary file storage =

Article ID: 74747

Article Last Modified on 4/24/2006

-

APPLIES TO


 * Microsoft Visual C++ 1.0 Professional Edition
 * Microsoft Visual C++ 1.5 Professional Edition
 * Microsoft Visual C++ 2.0 Professional Edition
 * Microsoft Visual C++ 2.1
 * Microsoft Visual C++ 4.0 Standard Edition
 * Microsoft Visual C++ 5.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 5.0 Professional Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition

-



This article was previously published under Q74747





SUMMARY
Microsoft development systems and the utilities included with them use the drive and directory specified by the TMP environment variable for temporary file storage. This operating-system environment variable is typically set in the startup batch file, AUTOEXEC.BAT for MS-DOS or STARTUP.CMD for OS/2. In Microsoft Windows 98, in Microsoft Windows NT, in Microsoft Windows 2000, in Microsoft Windows XP, or in Microsoft Windows Server 2003, TMP may be set through the System Applet in the Control Panel. The value of this environment variable must be the path of an existing drive and directory.

While Microsoft development tools use the TMP system variable, Microsoft applications, such as Microsoft Word and Microsoft Windows, use a system variable, TEMP. The TEMP variable is also set to a drive and directory that can be used by applications for temporary file storage.

Compilers and other development tools generally need more temporary file storage space than do applications. By having these various products read different environment variables to determine their temporary file storage location, Microsoft provides the user with a certain amount of flexibility. You may set both the TMP and TEMP environment variables to the same drive and directory such that all temporary files will reside in the same location. If free disk space is a concern and your system has multiple drives or is connected to a network, you may wish or need to set the TMP variable to another drive. Alternatively, under MS-DOS, you could set TEMP to the path of a small RAM drive and not worry that your development tools would run out of temporary file storage space.

Additional query words: masm fortran utilities

Keywords: kbhowto kbenv KB74747

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.