HOWTO: Create a User-Defined ServiceLast reviewed: October 30, 1997Article ID: Q137890 |
The information in this article applies to:
IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information on how to do this, view the "Restoring the Registry" or the "Restoring a Registry Key" online Help topics in Registry Editor.
SUMMARYThe Windows NT Resource Kit provides two utilities that allow you to create a Windows NT user-defined service for Windows NT applications and some 16-bit applications (but not for batch files). Instrsrv.exe installs and removes system services from Windows NT and Srvany.exe allows any Windows NT application to run as a service.
MORE INFORMATIONTo create a Windows NT user-defined service, perform the following steps:
- From the Services applet in Control Panel
- From a MS-DOS command prompt, type the following:
NET START <My Service>
- Use the Sc.exe utility from the Resource Kit. Type the following from
a MS-DOS command prompt:
<path>\Sc.exe start <My Service>
where <path> is the drive and directory of the Windows NT Resource
Kit (i.e., C:\Reskit).
For more information on installing and removing a user-defined service,
please see the Srvany.wri document provided with the Windows NT Resource
Kit utilities (i.e., C:\Reskit\Srvany.wri). This document can also be found
on the Windows NT Resource Kit CD in the Common\Config directory.
|
Additional query words: prodnt
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |