I created a
.cmd file which starts a Python script. I wanted to add it as a Windows service via
C:\Windows\System32>sc create DNSResolver127 binPath= "D:/bin/32dsdnsproxy.cmd" [SC] CreateService SUCCESS
The service is visible in the
Services panel but when i try to start it I get a timeout in the events log (2 events):
A timeout was reached (30000 milliseconds) while waiting for the DNSResolver127 service to connect. The DNSResolver127 service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.
Despite the 30s timeout the error appears immediately when trying to start the service.
It starts without problems from a
Are there special requirements for
.cmd files when started as a service?