执行 Windows 批处理命令后步骤中的命令不运行

问题描述:
执行 Windows 批处理命令后不再处理步骤命令。
在以下步骤示例中,第一个批处理文件后的两个命令不再运行。
C:\script1.bat
C:\script2.bat
echo "Performed both batch commands"
说明:
一个步骤中的所有命令都放在将由服务器运行的 Windows 批处理文件中。如果该步骤命令包含对批处理文件的引用,那么在该批处理文件运行后该步骤将退出。在批处理文件引用后的步骤命令不会运行。
解决方案:
在步骤中使用 call 命令来运行批处理文件。call 命令在步骤批处理文件中运行。
call C:\script1.bat
call C:\script2.bat
echo "Performed both batch commands" 

反馈