Hello,
I recomend this way (easyest) http://www.softplatz.com/S
but if you want I have instructions for register a exe under a service. A little easy job also.
HTH
Main Topics
Browse All TopicsCan someone show me WORKING SAMPLE SYNTAX to turn a exe into a service with the sc.exe utility?
I turned a batch file into a exe with a bat2exec utility, but no dice on getting it to run as a service.
::simple bat contents
:again
ping 127.0.0.1
goto again
:: trying to create it so the DOS window is always showing:
C:\>sc create newservice binpath= c:\windows\again.exe type= interact start= auto obj= %computername%\user password= abc-123
[SC] CreateService FAILED 87:
--------------
:: trying again using MS's own sample syntax...
c:\>sc create newservice2 binpath= c:\windows\again.exe
[SC] CreateService2 SUCCESS
c:\>net start newservice2
System error 5 has occurred.
Access is denied.
--------------
::fine, I'll be more explicit:
c:\>sc create newservice3 binpath= c:\windows\again.exe type= share start= auto obj= user password= abc-123
[SC] CreateService3 SUCCESS
c:\>net start newservice3
System error 1069 has occurred.
The service did not start due to a logon failure.
--------------
I give up.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hello,
I recomend this way (easyest) http://www.softplatz.com/S
but if you want I have instructions for register a exe under a service. A little easy job also.
HTH
I think you are confused about the capabilities of sc.exe. The create option will add a service to the registry. It doesn't take a non-service structured exe and turn it into a service.
This page isn't real clear on this. Your one clue is:
Create
Creates a service (adds it to the registry).
http://support.microsoft.c
If you can get your hands on Visual Studio for .NET Version 1+ creating a service is a no brainer.
You can use SrvAny.exe and InstSrv.exe from the W2k3 Resource Kit Tools to let a batch file run as a service; install the Resource Kit Tools and check the help for details:
Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/d
Business Accounts
Answer for Membership
by: ghostdog74Posted on 2007-10-18 at 16:30:19ID: 20105480
it all depends on how your again.exe is coded...