Macro
The macro command runs a series of commands that you specify in a macro file.
By including the macro command within a macro file, you can nest as many as 10 levels of commands.
Comment lines are not supported within the macro file that you specify for the macro command.
Supported Clients
This command is valid for all clients.
Parameters
- macroname
- Specifies the fully qualified name of the file that contains the commands.
Examples
The following is an example of how to use the macro command.
- Task
- Selectively back up files in the following directories:
- c:\devel\project\proja
- c:\devel\project\projb
- c:\devel\project\projc
- /devel/project/proja
- /devel/project/projb
- /devel/project/projc
Command: macro backabc.mac
Where backabc.mac contains the following statements:Selective /devel/project/proja/ Selective /devel/project/projb/ Selective /devel/project/projc/
selective c:\devel\project\proja\*.* selective c:\devel\project\projb\*.* selective c:\devel\project\projc\*.*