views:

60

answers:

2

Is there any quick way to, given an executable file, create a Windows service that, when started, lauches it?

A: 

Here is Microsoft's instructions about how to achieve this.

PiRX
+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
A pitty that there are no Microsoft-less alternatives... Thanks!
antur123