0

我正在尝试使用服务控制器将我的批处理文件(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
4

1 回答 1

0

尝试使用NSSM,这应该可以正常工作。

于 2016-11-21T23:23:18.330 回答