我有以下 2 个 bat 文件:
1.bat
------
//a line which does something
pause
2.bat
------
//a line which does the other something
pause
现在,如何通过忽略暂停在新的 bat 文件中运行这些 bat 文件?
最佳答案
简单:删除PAUSE
!
但我认为,您对问题的限制之一可能是您无法删除 pause
。
然后您可以使用重定向到被调用的批处理文件。
有点像
call 1.bat < nul
call 2.bat < nul
关于windows - 运行多个包含 "pause"的 bat 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12637683/