Create a service with SC create----(add to the registry)
As follows: Execute in command line mode:
SC create Testservice binpath= "c:/in estapp.exe" displayname= "Testservice" depend= Tcpip start= Auto
Note that the format here, "=" must be empty after a grid, otherwise there will be an error.
After the prompt is established, you can enter "net start Testservice" directly
To start the service, or you can start directly in the Services section of the Administrative tools.
C:/Documents and SETTINGS/ADMINISTRATOR>SC Create
Describe:
Create service items in the registry and the service database.
Usage:
SC <server> Create [service name] [binpath=] <option1> <option2>
Options:
Note: The option name includes an equal sign.
Type= <own|share|interact|kernel|filesys|rec>
(default = Own)
Start= <boot|system|auto|demand|disabled>
(default = Demand)
Error= <normal|severe|critical|ignore>
(default = Normal)
Binpath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= < Dependencies (separated by/(slash)) >
obj= <accountname| Objectname>
(default = LocalSystem)
Displayname= < display name >
password= < password >