我正在尝试使用服务控制器
将我的批处理文件(run.bat)作为Windows服务运行这是我用来创建服务的命令
sc \\myservername create myservicename binPath="C:\Program Files\Directories to use\ANI\run.bat" start=auto
[SC] CreateService SUCCESS
当我运行我的服务时:
sc start ANIService
[SC] StartService Failed 1053:
The service did not respond to the start or control request in the timely fashion