Commands in a step after a Windows batch command are not run
Problem Description:
The step commands after a Windows batch command are not processed.
In the following step example, the two commands after the first
batch file are not run.
C:\script1.bat
C:\script2.bat
echo "Performed both batch commands"
Explanation:
All commands in a step are placed in a Windows batch file to be
run by the server. If the step command contains a reference to a batch
file, the step exits after the batch file runs. Step commands after
the batch file reference are not run.
Solution:
Use the call command to run batch files within a step. The call
commands are run within the step batch file.
call C:\script1.bat
call C:\script2.bat
echo "Performed both batch commands"