GetRelativePathFromAbsolutePath Method

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

Engine.GetRelativePathFromAbsolutePath ( absolutePath, searchContext, relativePath, searchDirectoryPath)

Return Value

Boolean

Returns True if the file is found.

Purpose

Searches for a file in the TestStand search directories using an absolute path and returns the relative path with respect to the search directory.

Parameters

absolutePath As String

[In] An absolute or relative path for the file to find.

searchContext As Variant

[In] Contains the directory of the sequence file, which may also be searched for relative paths.

relativePath As String

[Out] Returns the relative path if the file exists on disk and a relative path is found. Otherwise, returns the absolute path.

searchDirectoryPath As String

[Out] Returns the related search directory if the relative path is found.

WAS THIS ARTICLE HELPFUL?

Not Helpful