title: Using a BAT file as service with NSSM
body: <p>I am writing a <code>.BAT</code> script which goes as follows:</p>
  <pre><code>cd &quot;C:\Program Files\WinRAR&quot;
  
  winrar.exe
  </code></pre>
  <p>Double clicking this batch file works fine and openes winrar for me....now i try installing it as service with NSSM</p>
  <p>i place <code>nssm.exe</code> in the same directory as my batch file and proceed to install it like following:</p>
  <p><a href="https://i.stack.imgur.com/bv076.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bv076.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/1wNWt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1wNWt.png" alt="enter image description here" /></a></p>
  <p>All other tabs are left unchanged. when I open <code>services.msc</code> and manually click <code>start</code> on this service it shows <code>running</code> but nothing happens. Can anyone tell me what I did wrong?</p>