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