Windows batch file, wait for command to finish?
<p>I can't seem to figure this out.</p>

<p>I am creating a live site and deploying it online</p>

<p>batch file:</p>

<pre><code>START cmd /K "runas /user:administrator &amp; cd C:\users\MyName\dropbox\!!GIT_HUB_REPOS_ALL\tangycode.github.io &amp; hexo generate &amp; hexo serve --draft"


START /wait "" http://localhost:4000/
</code></pre>

<p>The thing is running the command <code>hexo generate &amp; hexo serve --draft</code> takes about 5-10 seconds, time varies. Ideally I want to wait for this to occur before going to live site at <a href="http://localhost:4000" rel="nofollow">http://localhost:4000</a></p>

<p>Some reason this windows batch command just automatically opens up localhost:4000 right away though</p>