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
Windows 运行多个bat文件,其中包含;暂停“;在里面_Windows_Batch File - Fatal编程技术网

Windows 运行多个bat文件,其中包含;暂停“;在里面

Windows 运行多个bat文件,其中包含;暂停“;在里面,windows,batch-file,Windows,Batch File,我有以下两个bat文件: 1.bat ------ //a line which does something pause 2.bat ------ //a line which does the other something pause 现在,如何通过忽略暂停来在新的bat文件中运行这些bat文件?简单:删除暂停 但我假设,您对问题的限制之一可能是,您不能删除暂停 然后可以使用重定向到被调用的批处理文件 差不多 call 1.bat < nul call 2.bat < nu

我有以下两个bat文件:

1.bat
------
//a line which does something
pause

2.bat
------
//a line which does the other something
pause

现在,如何通过忽略暂停来在新的bat文件中运行这些bat文件?

简单:删除
暂停

但我假设,您对问题的限制之一可能是,您不能删除
暂停

然后可以使用重定向到被调用的批处理文件

差不多

call 1.bat < nul
call 2.bat < nul
调用1.bat
我正要发布类似的内容,只是我打算建议使用
ECHO(|1.bat
,实际上我更喜欢你的建议。无论如何,值得一提的是,如果批处理文件不读取
stdin
(而不是通过它们的
暂停
命令),该技巧将起作用。