title: Trying to run batch file as a Windows service
body: <p>I have created a simple batch file to start my redis node.</p>
  
  <pre><code>@echo off
  start cmd.exe /k "cd C:\Users\cmguser\Desktop\7000 &amp; redis-server ./redis.conf"
  </code></pre>
  
  <p>This batch file is working fine, if I am running it in cmd as administrator. I am creating this bat file as a windows service, through NSSM, but the service is giving following error:
  "windows could not start the service on local computer the service did not return an error." Referred this <a href="https://stackoverflow.com/questions/415409/run-batch-file-as-a-windows-service">link</a>.</p>
  
  <p>Do I have to mentioned run as administrator in my batch file, or there is any other issue through above mentioned method?</p>
  
  <p>Also I have tried creating service through following command but it threw the 1053 error :</p>
  
  <pre><code>sc create service_name binpath=C:\Users\user\Desktop\redis_config_7000  start= auto
  </code></pre>