Difference between revisions of "SET TMPDIR"

From Lianjapedia
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
  
 
==See Also==
 
==See Also==
[[DB_TMPDIR]], [[SYS()]], [[TMPDIR()]]
+
[[SET TMPNAMPATH]], [[SYS()]], [[TMPDIR()]]
  
 
==Description==
 
==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 DB_TMPDIR setting that is set at the beginning of a session and cannot be modified during the sessionIf neither DB_TMPDIR nor SET TMPDIR are set, the SYS(3) function will return a file name without any path information.  With DB_TMPDIR or SET TMPDIR set to a valid path, the return value of SYS(3) will include this path information.  Please note that the <expC> should include a trailing directory separator.
+
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==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
set tmpdir to "/usr/tmp/"
+
set tmpdir to "C:\Temp\"
 
? sys(3)
 
? sys(3)
/usr/tmp/000cf30006
+
C:\Temp\000cf30006
 
</code>
 
</code>
  
Line 21: Line 21:
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|TMPDIR]]
 
[[Category:Set_Commands|TMPDIR]]
 +
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Command Extensions]]

Latest revision as of 10:00, 3 January 2013

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