SC StartService Failed 1053 while running a batch file as a service
<p>I'm trying to run my batch file(run.bat) as a windows service using Service controller</p>

<p>This is the command I used to create my Service</p>

<pre><code>sc \\myservername create myservicename binPath="C:\Program Files\Directories to use\ANI\run.bat" start=auto

[SC] CreateService SUCCESS
</code></pre>

<p>When I run my service:</p>

<pre><code>sc start ANIService
[SC] StartService Failed 1053:
The service did not respond to the start or control request in the timely fashion
</code></pre>