How to launch application after server startup using batch file?

醉酒当歌 提交于 2019-12-11 22:04:40

问题


@echo off
set START_SERVER="C:\Program Files\Apache\Tomcat_6\bin\startup.bat"
call %START_SERVER%
start http://localhost:8080/MyProject/
  • How to launch app in browser after server start using batch?

  • My above script is starting server and launching app.. but both working simultaneously.

  • I want to launch app after server startup is done

回答1:


your code is right. The startwill run, when startup.bat is finished. The problem propably is in startup.bat Propably it starts an exe-file, and then exits, before that exefile is fully started. You can edit startup.bat or set an timeoutbetween the callline and the startline.



来源:https://stackoverflow.com/questions/17833721/how-to-launch-application-after-server-startup-using-batch-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!