Engine.GetRelativePathFromAbsolutePath
- Updated2024-10-09
- 1 minute(s) read
Engine.GetRelativePathFromAbsolutePath
Syntax
Engine.GetRelativePathFromAbsolutePath( absolutePath, searchContext, relativePath, searchDirectoryPath)
Return Value
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.