How to launch a web server and point the browser to it when it finishes?
- by Wing C. Chen
I am writing a windows batch file to do the following things:
Display a picture in the middle of the screen, showing the beautiful icon of my software.
Kick of the launch of the web server.
Finish displaying the picture.
Point the browser to the start page.
I have already know how to do it in step 2 and 4. However, I have the following questions in writing the windows batch file:
1. How do I know that the launch of the web server is finished, taking jetty as the example?
2. How do I display a picture and stop displaying it when I want to?
Here is what I have got so far:
::here I would like to display the picture
start javaw -jar start.jar ::Starting jetty here
::here I would like to stop displaying the picture
start http://localhost:8080/myApp ::Pointing the browser to the page
Thank you in advance for your help.