SET TMPDIR

From Lianjapedia
Jump to: navigation, search

Purpose

To specify the path to be used by the SYS(3) temporary file name function

Syntax

SET TMPDIR TO <expC>

See Also

SET TMPNAMPATH, SYS(), TMPDIR()

Description

The SET TMPDIR command is used to specify the path to be used by the SYS(3) temporary file name function. The SET TMPDIR command can temporarily override the default temporary directory setting. Unless SET TMPNAMPATH is OFF (default ON), the return value of SYS(3) will include this path information. Please note that the <expC> should include a trailing directory separator.

Example

set tmpdir to "C:\Temp\"
? sys(3)
C:\Temp\000cf30006