ExpandPathMacros Method

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

Engine.ExpandPathMacros ( pathString)

Return Value

Boolean

Returns True if at least one macro was found and expanded. Returns False if no macros were expanded.

Purpose

Expands all supported macros in the path string.

Remarks

32-bit TestStand replaces the $(Platform) path macro with win32, and 64-bit TestStand replaces the macro with x64. For example, 32-bit TestStand replaces C:\bin\$(Platform)\module.dll with C:\bin\win32\module.dll, and 64-bit TestStand replaces the same macro with C:\bin\x64\module.dll. TestStand does not change paths that do not contain macros.

Using a second $ character escapes the macro to form a literal part of a path. For example, TestStand expands C:\bin\$$(Platform)\module.dll to C:\bin\$(Platform)\module.dll. This method returns False if TestStand escapes but does not expand a macro.

Parameters

pathString As String

[In/Out] The path string in which to expand path macros. If TestStand expands the macros, it modifies this string.


See Also

Engine.FindFileEx

Engine.FindPath

WAS THIS ARTICLE HELPFUL?

Not Helpful