Is there any quick way to, given an executable file, create a Windows service that, when started, lauches it?
+1
A:
You can use sc.exe:
sc create newservice binpath= <pat_to_the_executable>
More info is available from Microsoft KB - http://support.microsoft.com/kb/251192
By the way, it was the first Google search result to the windows service from executable
query
ZloiAdun
2010-08-27 07:31:02
A pitty that there are no Microsoft-less alternatives... Thanks!
antur123
2010-08-30 12:23:44