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

时间:2012-12-17 23:29:31

标签: windows batch-file window parallels

  

可能重复:
  How do I run a bat file in the background from another bat file?

我想创建一个运行本地服务器(Seleneium grid2 * .jar)的bat文件,然后执行命令为其分配节点。我的问题是,当我打电话给你时

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

bat文件运行服务器并继续监听而不运行第二个命令(call)!

最好的方法是什么?

由于

1 个答案:

答案 0 :(得分:1)

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

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

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

检查:

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