.execute_command Macro

This macro is launches executables as part of a generation command. If there is a failure for any reason (executable not found or output sent to stderr), then command execution is stopped.

.execute_command (cmd [,args [,mode]])

The following parameters are available:

Parameter

Description

cmd

Specifies the path to the executable

Type: Simple template (escape sequences ignored)

args

[optional] Specifies arguments for the executable.

Type: Simple template (escape sequences ignored)

mode

[optional] Specifies the execution mode.You can choose from:

  • cmd_ShellExecute - runs as an independent process

  • cmd_PipeOutput - blocks until completion, and shows the executable output in the output window

Example
.execute_command(notepad, file1.txt, cmd_ShellExecute)

For information about generation commands, see Generation Category.