Juvigy Posted July 16, 2010 Posted July 16, 2010 I have a compiled script with the following script: While 1 If ProcessExists("test1.exe") = 0 then ShellExecute("C:\Music\test1.exe") Sleep(2000) WEnd I installed it as a service using: sc create myservice binpath= c:\myfile.exe But i cant start the service - i get some error 1053 sc start testservice [SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion Any idea how to fix this ?
jfcby Posted July 16, 2010 Posted July 16, 2010 Check this link out...jfcby Determined -- Devoted -- Delivered Make your mind up -- to seriously apply yourself -- accomplishing the desired results. **** A soft answer turneth away wrath: but grievous words stir up anger. Proverbs 15:1 KJB ****
Juvigy Posted July 19, 2010 Author Posted July 19, 2010 I know that but it relies on Srvany.exe which i cant use.
Tec Posted July 19, 2010 Posted July 19, 2010 Check this _Service_ UDF / Run your exe as Service ! Updated Using pure WinAPi, no external program
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now