Install utility as a service

  • Thread starter Thread starter ~~Alan~~
  • Start date Start date
A

~~Alan~~

I have a utility that I can either start via the Startup folder or I can
launch manually. How can I install this executable as a service that runs
in the background? I seem to remember from a long time ago an actual
"install" command or utility in WinNT 4.

~alan


--
-----------------------------------------

Alan Shepro
(e-mail address removed)

You can not reply directly to this email message. You must manually enter
my email address as it is listed above.

-----------------------------------------------------------------
 
From: "~~Alan~~" <[email protected]>

| I have a utility that I can either start via the Startup folder or I can
| launch manually. How can I install this executable as a service that runs
| in the background? I seem to remember from a long time ago an actual
| "install" command or utility in WinNT 4.
|
| ~alan
|

Hi Alan:

Use the SC.EXE utility to; create, start, stop and delete NT Services.

sc create /?
Creates a service entry in the registry and Service Database.
SYNTAX:
sc create [service name] [binPath= ] <option1> <option2>...
CREATE OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec|error>
(default = own)
start= <boot|system|auto|demand|disabled|error>
(default = demand)
error= <normal|severe|critical|error|ignore>
(default = normal)
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
(default = LocalSystem)
DisplayName= <display name>
password= <password>
 
Back
Top