CreateTempFile Method

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

Engine.CreateTempFile ( baseName, extension, directory)

Return Value

String

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.


See Also

Engine.TestStandDirectory

WAS THIS ARTICLE HELPFUL?

Not Helpful