FindPath Method

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

Engine.FindPath ( pathToFind, absolutePath, statusFlag, [currentSequenceFile])

Return Value

Boolean

Returns True if the file or directory is found.

Purpose

Searches for a file or directory under the TestStand search directories using a simple file or directory name or relative pathname.

Parameters

pathToFind As String

[In] Specifies a string that contains the simple file or directory name or relative pathname of the file or directory to search for. TestStand expands macros in the path as specified by the Engine.ExpandPathMacros method before searching.

absolutePath As String

[Out] Returns the absolute pathname of the file or directory if it is found.

statusFlag As FindPathStatusValues

[Out] Returns more information about the file or directory.

currentSequenceFile As Variant

[In] [Optional] If you pass a SequenceFile object for this parameter, the Engine.FindPath method initially searches the directory where the sequence file is stored if the Current Sequence File Directory option is enabled. Select Configure»Search Directories to launch the Edit Search Directories dialog box and enable the Current Sequence File Directory option.


See Also

Edit Search Directories dialog box

Engine.ExpandPathMacros

Engine.FindFileEx

Engine.SearchDirectories

FindPathStatusValues

Omitting Optional Parameters

SearchDirectoryTypes

Using the $(Platform) Path Macro to Locate the Correct Code Module in 32-bit TestStand and 64-bit TestStand

WAS THIS ARTICLE HELPFUL?

Not Helpful