TEMPFILENAME$ function

Purpose: Creates a file with a unique filename in the system temporary folder. The filename is the concatenation of specified path and prefix strings, hexadecimal string derived from the current system time, and the .TMP extension.


 Syntax:

 RetStr$ = TEMPFILENAME$(TEMPDIR$, PrefixMainStr$)

 Parameters:

  • RetStr$ Returned string containing the temporary file name.
  • PrefixMainStr$ String containing a prefix for the temporary file name. The function uses up to the first three characters of this string as the prefix of the file name.