PATH.GetTempFolder

Previous  Next

 

foldername = PATH.GetTempFolder() AS STRING

 


 

Returns the path of the folder designated for temporary files.  When used on Windows it uses the following criteria

 

1.The path specified by the TMP environment variable.
2.The path specified by the TEMP environment variable, if TMP is not defined.
3.The Windows directory, if both TMP and TEMP are not defined

 

Example:

 

$LIBRARY "MyBASIC2_ExtLib"

$INCLUDE "MyBASIC2_ExtLib"

 

folder = PATH.GetTempFolder()

 

PRINT "Temporary File Folder = ";folder,

 

END