Websc \\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
When creating a service with sc.exe how to pass in context …
WebOct 22, 2013 · 使用sc create 注册windows服务,执行多次总是报sc命令的帮助,说明格式有错,查了半天网站,发现binPath=后面一定要有空格 还有可能的报错问题,是运城复制粘贴时空格的问题,每个单词后只有一个空格 sc create xxx binPath= "C:\xxx.exe" [SC] CreateService SUCCESS 成功后信息 ... WebApr 12, 2024 · 将bat或exe添加到win服务中. 1、创建服务. sc cre ate ServiceName binPath = “D:\bat\myTest.bat” start= auto. 2、ServiceName为自定义服务名称. 3、binPath为exe或bat路径, 注意这里的格式,“=”后面是必须空一格的,否则会出现错误 。. 4、启动服务,查看是否添加成功. servic es.msc. 5 ... download pdf notes
Windows使用sc命令将自己的程序创建为service时,当路径有空格时的解决办法_windows sc …
Web[SC] QueryServiceConfig FAILED 122: The data area passed to a system call is too small. [SC] GetServiceConfig needs 1094 bytes. I think this means that the sc command is sending a data structure to some other library that is too small for the data that needs to be returned. WebOct 13, 2014 · Service name is missing. After = (equals symbol) you need to put a space. So the correct command would be as follows: cmd.exe /C sc create "ServiceName" binpath= … WebI.e. this was not working/causing the 'help' dump: C:\>sc create "My Service" binPath="C:\MyService\MyService.exe". But this worked: C:\>sc create "My Service" binPath= "C:\MyService\MyService.exe". The behavior depicted in the original question is more "generic" than improper quotation marks. It is how the OS reacts to commands that were ... download pdf of website