TMP: Temporary Directory

Tools

Compiler, Assembler, Linker, Debugger, or Librarian

Synonym

None

Syntax
  TMP=<directory> 
  
Arguments

<directory>: Directory to be used for temporary files

Default

None

Description

If a temporary file must be created, the ANSI function, tmpnam(), is used. This library function stores the temporary files created in the directory specified by this environment variable. If the variable is empty or does not exist, the current directory is used. Check this variable if you get the error message "Cannot create temporary file".

Note: This is an environment variable on a system level (global environment variable). It cannot be specified in a default environment file ( default.env).
Example

TMP=C:\TEMP

See also

Current Directory