Winserv
|
Winserv is an utility that can create an NT service that runs any application. When the application exits, the service becomes stopped. It is also able to manage local and remote NT services that were not created by winserv.
Winserv can be used as a command-line utility to configure, control, view status of any NT service, whether it is winserv-based or not. Winserv can interact with a remote machine's service control manager. When you use winserv from a command prompt, just prepend \\Machine\ to the service name if you want to operate with remote service
The service name that winserv requires is not the display name of the service, but rather the internal unique name.
Winserv is designed with scripting languages in mind, TCL in particular. It can forward SCM control requests to the application in different ways, enabling you to do any cleanup on stop and to implement "paused" service state.
If you want to write a winserv-based service in a scripting language other than TCL, you may want to implement helper modules, similar to TCL winserv support package. To do it, you have to know what escape sequences winserv interprets when the application writes to its standard output or the named pipe.
The basic syntax for winserv invocation is the following:
winserv subcommand service-name options [ args ...]
The license of this software is Freeware, you can free download and free use this server utility software.