如何让bat文件并行运行两个罐子?

问题描述:

可能重复:
How do I run a bat file in the background from another bat file?如何让bat文件并行运行两个罐子?

我想要运行的本地服务器一个bat文件(Seleneium GRID2的* .jar),然后EXCUTE命令节点分配给它。我的问题是,当我打电话给这个

java -jar selenium-server-standalone-2.28.0.jar -role hub 
call assign-node.bat 

bat文件运行服务器,并保持监听,而不运行第二个命令(调用)!

这样做的最佳方法是什么?

谢谢

您可以使用两个单独的批处理文件。或

start java -jar selenium-server-standalone-2.28.0.jar -role hub 
call assign-node.bat 

开始命令应在后台模式下运行它。没有测试过它。

检查:

How to create batch file in Windows using "start" with a path and command with spaces