'error [SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion

I'm trying to run my batch file(autoMove.bat) as a windows service

the cmd i used:

sc create "automove" start= demand displayname= "move and copy xml files" binpath= "C:/dir/autoMove.bat"

and the service is created successfully, but when i try to run it, it gives me this error:

[SC] StartService FAILED 1053:

The service did not respond to the start or control request in a timely fashion.


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source