Engine.CreateTempFile
- Updated2025-07-21
- 1 minute(s) read
Engine.CreateTempFile
Syntax
Engine.CreateTempFile( baseName, extension, directory)
Return Value
The pathname of the temporary file.
Purpose
Creates a unique temporary file with a specific basename and extension.
Remarks
When TestStand shuts down, it automatically deletes the temporary file.
Parameters
baseName As String
[In] Specifies the base name of the temporary file. If necessary, TestStand adds other characters to the name to make it unique.
extension As String
[In] Specifies the file extension for the temporary file.
directory As String
[In] Specifies the directory in which to store the temporary file. You can include a trailing backslash, but it is not required. Pass an empty string to use the TestStand subdirectory in the directory the TEMP environment variable specifies, which by default is %USERPROFILE%\AppData\Local\Temp on Windows 8.1/8/7/Vista and %USERPROFILE%\Local Settings\Temp on Microsoft Windows XP.