title: Windows 7 bat file not starting as a service
body: <p>I'm running a Windows service which starts a simple bat-file during start up, but the service won't start. If I try run it manually from the service GUI I get following error message.</p>
  <blockquote>
  <p>Error 1053: the service did not respond to the start or control request in a timely fashion</p>
  </blockquote>
  <p>This seems to be a common error during service startup, however I didn't find similar problem in the other answers. I created the service from command line with following command</p>
  <pre><code>C:\Users\Administrator&gt;sc create service_name binpath= c:\service.bat start= auto
  [SC] CreateService SUCCESS
  </code></pre>
  <p>Then I run it with</p>
  <pre><code>C:\Users\Administrator&gt;sc start service_name
  </code></pre>
  <p>However, I got the error message:</p>
  <blockquote>
  <p>[SC] StartService FAILED 5:</p>
  <p>Access is denied.</p>
  </blockquote>
  <p>If I run it from the command prompt as administrator, I don't get the access denied message, but I get the 1053 error. I suppose running one bat file as a Windows service shouldn't be that difficult. Any ideas?</p>