From: "kmkrause2" <
[email protected]>
| Does Microsoft have any utilities that will convert and executable into a
| Windows Service? I know there are 3rd party utilities, but I didn't want to
| buy one if there was already one available in Win2k.
|
| TIA,
| Ken
From the NT Resource Kit...
INSTSRV.EXE
SRVANY.EXE
The following is an example of installing the SETI Command Line utility as a service.
The SETI Command Line utility was renamed to; myseti.exe for the following...
@echo off
:
: S@H Client Daemon
: v1.3
:
copy ".\SaH\*.*" %windir% >nul
%windir%\instsrv MySeti %windir%\srvany.exe
regedit /s .\sah_serv.reg
c:
cd %windir%
cmd
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySeti]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySeti\Parameters]
"Application"="c:\\winnt\\MySeti.exe"
"AppDirectory"="c:\\winnt"
To remove a service use the NT Resource Kit utility; delsrv.exe