Creating Windows Service
Hi there,
Sorry for posting randomly, actually i didnt know where to put this question
Actually iam trying to create windows service of some repeating tasks from a batch file (using SC Command). when i run that batch file all the tasks finishes successfully but when i start that service it gives me Error
1053: the service did not respond to the start or control request in a
timely fashion. then i created a simple batch file that is calling calc.exe from system32 and created service. the same result.
Batch File (calc.bat)
cd windows
cd system32
calc.exe
SC Commandlet
SC create calc binpath= D:\calc.bat start= auto DisplayName= Calculator obj= domain\user password= password
please let me know what iam doing wrong here
iam using domain Admin user, so there shoudnt be the Privileges issue i guess
Virgo
June 6th, 2012 7:43am
That will not work. The binPath should point to a windows service executable since it must communicate with the service control manager.
There are some solutions, "wrappers" which you can use to run your batch file.Csaba
Free Windows Admin Tool Kit Click here and download it now
June 19th, 2012 7:54am


