|
Navigation: Actions > Miscellaneous > Batch File > Batch File Action Command Tab |
![]() ![]()
|
This tab of the Batch File Command action specifies the batch file or command script to run.

Command script: Specifies the batch file or command script to invoke (required). The filename of a command script or batch file can be provided, or the contents of a script can be entered in the second field.
Notes:
| • | Single parenthesis characters must be doubled (%%) to not be treated specially by VBP. Strings within parentheses (i.e., %PATH%) will also be expanded by VBP if not escaped. |
| • | Bracket characters [ and ] normally denote a script expression to be inserted into a field; to insert literal brackets, use two bracket characters [[ or ]]. |
| • | The exit code of the command processor will be stored in the RUNPROGRAM_EXITCODE temporary macro. |
| • | To execute Windows shell (as opposed to command processor shell) commands (for instance, to open a document in its associated application, select cmd /c call in the processor field, .cmd in the file extension, and enter a command script of start "shell command here". |