小编Sei*_*iti的帖子

cmd.exe:如何启动后台进程,运行一些东西,停止后台进程

我想运行一个批处理脚本:

  • 启动后台进程(Selenium RC 服务器,如果重要的话);
  • 等待直到后台进程开始侦听某个端口(或等待固定的时间);
  • 运行一些指令;
  • 停止后台进程。

我是这样写的:

start java -jar "path\selenium-server.jar" 
ping -n 5 127.0.0.1 >NUL
"path\Gallio.Echo.exe" "path\MyAssembly.dll"
REM now, how do I stop the background process?
Run Code Online (Sandbox Code Playgroud)

command-line-interface batch background-process

3
推荐指数
1
解决办法
2万
查看次数