Ok, here's the problem.
My goal is to run FF Portable, when Jetty starts. My start.bat looks like that:
@echo off
start /B start_jetty.bat
start /B start_firefox.bat
start_jetty.bat:
@echo off
cd jetty-7.1.6/
java -jar start.jar
start_firefox.bat:
@echo off
ping -n 1 -w 6000 0.0.0.1
"%cd%\FirefoxPortable\FirefoxPortable.exe"
Questions:
- How can i make start_firefox.bat to execute after jetty starts?
- DONE - How can i run both of those batch without any console?
- How can i stop jetty after firefox is closed?
- Is there any way i could make it cleaner and safer?
edit: /B as start command option eliminates additional console windows. edit2: trick in firefox start, now it waits for 6 seconds before it starts.