Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

CreateTempFile Method

NI TestStand™ 4.0 Help
April 2007

NI Part Number:
370052F-01

»View NI TestStand Product Info

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 specified by the TEMP environment variable, which by default is %USERPROFILE%\Local Settings\Temp.


See Also

TestStandDirectory


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit