### 34.4.2 Including macros and variables in system commands

System commands can include the following:

• Mif2Go macro expressions

• user variables you have defined in [UserVars]

• macro variables you have defined in [MacroVariables]

• the following predefined macro variables (see §28.3.4 Using predefined macro variables):

<$$_basename> | Base file name (without path or extension) of the current FrameMaker source file
<$$_currpath> | Path (without trailing slash) to the current directory where the configuration file resides
<$$_macroparam> | Value of a parameter passed to the enclosing macro.
<$$_prjpath> | Path (without trailing slash) to the directory where the .prj file resides

Predefined macro variables other than those listed here do not work in system commands. Macro variable <$$_macroparam> can be used only within a macro; see §28.7 Passing a parameter to a macro.

Include macro expressions

You can use macro expressions in system commands: math and string manipulations, conditional expressions, loops, formatted output, and so forth; see §28.6 Using expressions in macros.

Prompt for user variables

You can have Mif2Go prompt you for values of user variables that appear in system commands; see §34.5 Supplying run-time values for user variables.

| 34.4.1 Specifying system commands |  | 34.4.3 Monitoring system command execution |