title: windows command-line script(script.bat) for starting elasticsearch nodes
body: <p>I have two elasticsearch services installed through:</p>
  
  <pre><code>service install node1
  service install node2
  </code></pre>
  
  <p>I am trying to start elasticsearch nodes running a script.bat file with these two commands:</p>
  
  <pre><code>service start node1
  service start node2
  </code></pre>
  
  <p>The output on the command line is: </p>
  
  <pre><code>C:\Users\User1\Desktop\Work\ElasticSearch\elasticsearch-1.3.1\bin&gt;script.bat
  
  C:\Users\User1Desktop\Work\ElasticSearch\elasticsearch-1.3.1\bin&gt;service start node1
  The service 'node1' has been started
  
  C:\Users\User1\Desktop\Work\ElasticSearch\elasticsearch-1.3.1\bin&gt;
  </code></pre>
  
  <p>The script is starting node1. But it is not starting node2. It is probably because the first command is taking time and .bat script is not intelligent enough to handle this delay. Is this a limitation of command line .bat scripts? Should I use a different scripting tool like powershell scripts, etc? </p>