Hi,

Hm, well the Windows 2000 Resource Kit "Tools" help has the chapter "Running
an Application as a Service" states:

Running an Application as a Service

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

To specify an application to run as a service, you must use a registry
editor to add information to the Windows registry. You also have the option
of setting any required startup parameters to run the application, as well
as setting the working directory used by the application.


and then gives specific instructions...:

Click the Start button, and then click Run. 
In the Open box, type regedt32, and click OK. 
 
Add a new Parameters subkey in the following registry location: 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ 
MyService\ 
In the new Parameters subkey, create an: 
Application entry with a data type of REG_SZ, 
specify the full path of the executable file for the application (including
the extension). For example: 

Application: REG_SZ: D:\Tools\Vi.exe
Setting Start Parameters
Use one of the following to set specific start parameters.

In the new Parameters subkey in the registry, create an AppParameters entry
with a data type of REG_SZ, and specify the parameters for the application.
For example: 

AppParameters: REG_SZ: C:\Tmp\EXAMPLE
- Or - 

In Services in Control Panel, click your service, and then, in the Startup
Parameters box, type the full command line required to start the
application. For example: 


D:\\Binp\\B.exe C:\\Tmp\\EXAMPLE
Note You must type two backslashes (\\) to specify a single backslash (\).

But then warns:
---------------

Use Services only when the service is configured to be started manually, not
when it is started by the system. If the target application is usually the
same each time you run the service, specifying it in Services is less
convenient than entering these parameters in the registry, because you must
type the parameters each time the service is started. However, if the target
application is usually different each time the service is started, using the
Services method might be more convenient.


Best Regards
Andy Schmidt

Phone:  +1 201 934-3414 x20 (Business)
Fax:    +1 201 934-9206 



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Landry William
Sent: Monday, November 01, 2004 03:26 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [sniffer] Persistent Server setup with SrvAny Resource Kit tool



No, nothing was typed into the Services window.  The Sniffer service was
installed using the SrvAny W2K ResKit guidelines and the service starts
automatically when the server is rebooted.

Bill


This E-Mail came from the Message Sniffer mailing list. For information and 
(un)subscription instructions go to 
http://www.sortmonster.com/MessageSniffer/Help/Help.html

Reply via email to