|
|
|
|
|
fTempFile (Function) In french: fFichierTemp Returns the name of a unique temporary file. Remark: fTempFile does not create the corresponding temporary file. To create and open a temporary file, use fOpenTempFile. New in version SaaS Syntax
<Result> = fTempFile([<Prefix of temporary file> [, <Directory of temporary file>]])
<Result>: Character string - Full path of a unique temporary file.
- Empty string ("") if an error occurred (unable to get the temporary path of system). To get more details on the error, use ErrorInfo with the errMessage constant.
<Prefix of temporary file>: Optional character string Prefix (3 letters) for the name of the temporary file. This parameter is used to prefix the name of the temporary file. Only the first three letters will be taken into account. <Directory of temporary file>: Optional character string Full or relative directory of the temporary file. A UNC path can be used. This directory name may (or may not) end with the "\" character. This directory must exist. Otherwise, a WLanguage error will occur. If this parameter is not specified, the default directory will be:- the temporary directory of Windows (if this directory exists on the current computer),
- the current directory (if the temporary directory of Windows does not exist on the current computer).
Remarks fTempFile is used to find out the name of a unique temporary file. This function cannot be used to create the corresponding temporary file. To do so, use fCreate or fOpenTempFile. Caution: For security reasons, fTempFile deletes the temporary file if it already exists. If the temporary file is used by another process, a non-fatal error will occur.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|