Engine.ExpandPathMacros
- Updated2025-07-21
- 1 minute(s) read
Engine.ExpandPathMacros
Syntax
Engine.ExpandPathMacros( pathString)
Return Value
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.