Navigation:  Actions > Miscellaneous > Batch File >

Batch File Action Command Tab

Previous pageReturn to chapter overviewNext page

This tab of the Batch File Command action configures information about the command processor used to execute the batch file or command script.


Start In: The path that will be the starting directory for the process (optional).


No echo: Disables echoing of command output if checked.


Disable command extensions: Disables cmd.exe command extensions.


Disable execution of AutoRun commands: If checked, disables execution of AutoRun registry commands.


Use old quote processing behavior: If checked, turns on cmd.exe /S switch.


Show application window: Hides the console window when unchecked.


Wait for Completion: When checked, Visual Build waits for the step to finish before continuing and it displays any step output in the Output pane.  Uncheck this item to immediately start the next step without waiting for the current step to complete.  No output from that step will be shown in Visual Build and if the process is successfully started, it will be treated as a successful.



When this option is unchecked, the process ID of the launched process will be stored in the RUNPROGRAM_PROCESSID temporary macro.
When this option is checked, the exit code of the process will be stored in the RUNPROGRAM_EXITCODE temporary macro.


Success exit codes: Visual Build determines the success of the process by examining the exit code of the process.  By default, a zero (0) exit code is considered successful, and any other code is a failure.  Sometimes, an application will return non-zero exit codes to indicate partial success or additional information, and multiple ranges of success exit codes can be specified in the format low1:hi1, low2:hi2, code3.  For instance, 0:5, 10 would cause the values 0 through 5 and 10 to be considered successful exit codes.


File extension: Specifies the file extension to use when creating a temporary file if script code is provided on the Commands tab (optional, defaults to .bat).


Override default command interpreter executable: Specifies the filename of the cmd.exe executable (optional, defaults to cmd if not provided).


Note: To call the 64-bit version of cmd.exe from the 32-bit edition of Visual Build, enter a value of %WINDIR%\Sysnative\cmd.exe in this field.  To call the 32-bit version of cmd.exe from the 64-bit edition of Visual Build, enter a value of %WINDIR%\SysWOW64\cmd.exe in this field.


Additional options: Specifies additional flags for the command interpreter (optional).