Report.SetTempFileDirectoryEx

Syntax

Report.SetTempFileDirectoryEx( directory, tempFileDirectoryOption = SetTempFileDirectoryOption_Default)

Purpose

Specifies the directory path where TestStand saves the file the Report.GetTempFile method creates.

Remarks

When you use the SetTempFileDirectoryOption_Default option with this method, calling the Report.Load or Report.Save method modifies the directory path where TestStand saves the file the Report.GetTempFile method creates. Using the SetTempFileDirectoryOption_Default option with this method results in the same behavior as using the Report.TempFileDirectory property to specify the directory path where TestStand saves the file the Report.GetTempFile method creates.

Use the SetTempFileDirectoryOption_NeverOverride option to ensure that TestStand saves the file the Report.GetTempFile method creates in the directory path this method specifies. You can override the directory path by calling this method again to set the directory path.

By default, TestStand saves the file the Report.GetTempFile method creates in the directory path of the report file. Typically, if you save generated reports on a network drive to which you do not have delete permission, you cannot delete the file the Report.GetTempFile method creates after the execution. To work around this situation, use the Report.SetTempFileDirectoryEx method with the SetTempFileDirectoryOption_NeverOverride option to save the file the Report.GetTempFile method creates to a local drive.

Parameters

directory As String

[In] Specifies the directory path to save the file.

tempFileDirectoryOption As SetTempFileDirectoryOptions

[In] Pass 0 to specify the default behavior or an option from the SetTempFileDirectoryOptions enumeration.

This parameter has a default value of SetTempFileDirectoryOption_Default .

See Also

Report.GetTempFile

Report.TempFileDirectory

SetTempFileDirectoryOptions