Command MACRO
Function:
Provides command line macros.
Syntax:
MACRO [macroname=text]
or
MACRO [/D macroname]
or
MACRO [ON | OFF]
macroname Specifies the name of the new command. text Specifies the commands to be executed. /D Delete a macro. ON Display expanded macros. OFF Do not display expanded macros. The are some special character combinations that have a special meaning and that can be included in parameter text :-
$$ Dollar sign. $1 to $9 Replaceable parameters similar to the replaceable parameters %1 to %9 used in batch files. $* Replace with the whole command tail. $B Bar character. Pipe commands. $G Greater than sign character. Redirect output. $L Less than sign character. Redirect input. $T Command separator.
Note:
Type MACRO without any parameters to display a list of all the macros defined.
Macros can have the same name as an original command, to execute the original command, type a space character before the command is entered.
Only the first 12 characters in parameter macroname are significant when executing a macro at the command prompt. However, all the characters in parameter macroname are significant when deleting a macro.
Macros are saved as they are created.
Examples on using MACRO.
