SourcePoint AMD Help

Table of Contents

macropath

Display the path of the macro currently being executed.

Syntax

macropath

Discussion

The macropath control variable is a string that contains the full path to the directory where the currently executing macro is located. The string is terminated with a final slash/backslash path delimiter. ย If this variable is referenced from a context outside of macro file execution, the result is an empty string.

Example

Assume the currently executing macro C:\Program Files\Arium\SourcePoint\mac\big.mac.

Command input:

define nstring mymac = macropath + "other.mac";
mymac

Result:

"C:\Program Files\Arium\SourcePoint\mac\other.mac"

Related Topics: