PATH.GetTempFile

Previous  Next

 

filename = PATH.GetTempFile( [folder AS STRING = PATH.GetTempFolder()], 

                             [prefix AS STRING = "MB$"] ) AS STRING

 


 

Creates and returns a name for a temporary file. The file name is the concatenation of specified path and prefix strings, a hexadecimal string formed from a specified integer, and the .tmp extension.  The function will not create the file.

 

Example:

 

' Copy all files to temp folder

 

nFiles = FF.Find( hFF, EL_FF_NormalFiles )

 

FOR i = 1 TO nFiles

  srcFile = FF.GetFilePath( hFF, i )

  tmpFile = PATH.GetTempFile()

 

  COPY srcFile TO tmpFile

ENDFOR