Partners Contact US Site Map
A professional PDF Converter, PDF Writer, PDF Creator, PDF Editor, HTML Converter, Postscript Converter, AutoCAD DWG Converter, as well as PCL Converter, etc.  

How To Create a Service under Windows

There are occasions when it may be useful to run a Windows application as an service. The Windows Resource Kit provides two utilities, INSTSRV.EXE and SRVANY.EXE, that allow you to establish a user-defined service.

Essential Downloads

INSTSRV.EXE - Utility to add or remove NT services (NT 4.0)
SRVANY.EXE - Utility to allow any NT application to run as an NT service (NT 4.0)

INSTSRV.EXE - Utility to add or remove 2000 services
SRVANY.EXE - Utility to allow any 2000 application to run as an 2000 service


Warning: The following text includes instructions on modifying the system registry. Use extreme caution whenever you make changes to the registry. Inadvertent modifications may cause irreparable damage to your NT system.

Make sure that you are logged on as a user with administrative privileges. Also, verify that both INSTSRV.EXE and SRVANY.EXE are stored in a directory within the search path.
bullet Open up an MS-DOS command prompt.
bullet Type the following command: INSTSRV [service name] SRVANY.EXE
where [service name] is the name of the service you are setting up. The service name can be whatever you want, but should be descriptive.
bullet Remove service example:
INSTSRV MyService REMOVE were "Myservice" is the service name.
bullet Open up the Registry Editor (Click on the Start Button, select Run, and type REGEDIT)
bullet Locate the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\[service name]
bullet From the Edit menu, select New, select Key, and name the new key Parameters
bullet Highlight the Parameters key
bullet From the Edit menu, select New, select String Value, and name the new value Application
bullet From the Edit menu, select Modify, and type in the full path name and application name, including the drive letter and file extension
Example: D:\Program Files\Network Monitor\netmon.exe
bullet Close the Registry Editor.

Related Pages

Microsoft Support Page: HOWTO set up a user-defined service (Article ID: Q137890)
How To Create a User-Defined Service
How To Create a Service under Windows

See Also:
PDF to Image Converter :: PDF Extract TIFF :: HTML Converter :: PDFcamp Printer :: DocConverter COM :: PDF to Word Converter :: PDF to Text Converter :: Image to PDF Converter :: Image to PDF OCR :: PDF to HTML Converter :: AutoCAD DWG and DXF to PDF Converter :: PCL to PDF Converter :: Document Printer (docPrint) :: VeryPDF PDF Editor :: PDF Password Remover :: Encrypt PDF :: PDF Split-Merge :: PDF Stamper :: VeryPDF PDFPrint :: Advanced PDF Tools :: PDF Editor Toolkit :: Text to PDF Converter :: PowerPoint to Flash :: PowerPoint Converter

Home | Site Map | | | Contact
Copyright © 2002- Company. All Rights Reserved.