title: Batch script to check until the url is up
body: <p>I need a batch script where I can loop until the server is up. I could find a bash script of similar kind      </p>
  
  <pre><code>while ! curl http://localhost:8080/wd/hub/status &amp;&gt;/dev/null; do :; done
  </code></pre>
  
  <p>I wrote a while loop for batch file can be of this kind</p>
  
  <pre><code>:while1
  if ! wget http://localhost:8080 (
      echo down
      ping 127.0.0.1 -n 6 &gt; nul
      goto :while1
  )
  </code></pre>
  
  <p>but its not working. Can anyone help in this issue..</p>