Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

Perhaps you could look at Servify This

Should do what you;re asking for.

share|improve this answer
That does the trick perfectly <3 – Hedge May 29 '11 at 20:06

You said "Sports only a command-line interface", this makes no difference what so ever, a service can be run as a command line or a GUI (limits/security depending).

I would personally take a look at the application closer, if it is logging in as a user (service for example) does it have the needed paths and/or are you giving all the necessary calls/arguments in the start?

share|improve this answer
I found out the problem was that Windows didn't get any response from it (it awaits a special response from services). So I had to wrap it with a tool like Servify This which makes the necessary calls for me. – Hedge May 29 '11 at 20:08

If the program you're trying to run as a service requires user input, that may be what's causing it to time out. Try executing the program from the command line with the exact same flags and switches you've got the service configured to run with and see what happens. You may need additional flags/switches to make it run without user input whatsoever, or pipe input in from another program/file through a scripted call to the program (batch file, powershell script, etc).

share|improve this answer
It doesn't need user input. – Hedge May 29 '11 at 20:12

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:

share|improve this answer

Have a look at NSSM - "the Non-Sucking Service Manager".

NSSM is created exactly for this purpose, and also for monitoring & auto-restarting such a console app. It's used e.g. by SaltStack, and others.

It's licensed as a public domain app.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.