I'm trying to run my batch file(run.bat) as a windows service using Service controller
This is the command I used to create my Service
sc \\myservername create myservicename binPath="C:\Program Files\Directories to use\ANI\run.bat" start=auto
[SC] CreateService SUCCESS
When I run my service:
sc start ANIService
[SC] StartService Failed 1053:
The service did not respond to the start or control request in the timely fashion