How to turn an executable-file into a service in Windows 7?

I want to use an executable-file (which sports only a command-line interface) as a service in Windows 7.

I added it to successfully via:

sc MySVC binPath= "C:\Windows\System32\MyProgram.exe"

but once I try to start it, it times out with an 1053 error.

What am I doing wrong?


Perhaps you could look at Servify This

Should do what you;re asking for.


I use three methods:

1.- SC command, just related above.
2.- SrvAny from Windows Resource Kit.
3.- AlwaysUp (not free :-( ). The best until now.

In order to not repeat posts, here are the details: