title: Bat file service runs many times
body: <p><strong>I have created a bat file to start a Ruby service</strong> </p>
  
  <p>working code is:</p>
  
  <pre><code>ruby C:\folder\Projects\folder\folder\script\server
  </code></pre>
  
  <p>It <strong>works fine</strong> when I open a command prompt ,paste it and run.</p>
  
  <p>but <strong>not working</strong> when I created a bat file of it.</p>
  
  <p>bat content is</p>
  
  <p><code>ruby C:\folder\Projects\folder\folder\script\server
  pause</code></p>
  
  <p>when I run that bat file, it not working as expected. It runs multiple as shown below.
  <img src="https://i.stack.imgur.com/2hLKL.png" alt="enter image description here"></p>
  
  <p>Please help me to resolve it.</p>