Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file CMD仅读取命令的第一行_Batch File_Cmd - Fatal编程技术网

Batch file CMD仅读取命令的第一行

Batch file CMD仅读取命令的第一行,batch-file,cmd,Batch File,Cmd,我有一个愚蠢的问题,我的cmd文件包含多行mqsi命令。例如: mqsideleteexecutiongroup broker1 -e name1 mqsideleteexecutiongroup broker2 -e name2 然后我运行它并输出到一个txt文件,但ut只执行第一行并完成。有什么想法吗 start /b /wait mqsideleteexecutiongroup broker1 -e name1 start /b /wait mqsideleteexecutiongrou

我有一个愚蠢的问题,我的cmd文件包含多行mqsi命令。例如:

mqsideleteexecutiongroup broker1 -e name1
mqsideleteexecutiongroup broker2 -e name2
然后我运行它并输出到一个txt文件,但ut只执行第一行并完成。有什么想法吗

start /b /wait mqsideleteexecutiongroup broker1 -e name1
start /b /wait mqsideleteexecutiongroup broker2 -e name2

我没有访问这些命令的权限,但这应该可以工作。

是的,nephil,mqsi命令实际上是一个bat文件,末尾在最后一行,因此它将结束cmd。我把电话放在最前面,因为工作正常。谢谢你的帮助:)