Turn a common application into a service in Win2000 (NT)

Source: Internet
Author: User
Program
Turn a common application into a service in Win2000 (NT)

Download Related Programs Srvany.exe Instsrv.exe

Http://postboy.myetang.com/files/srvany.exehttp://postboy.myetang.com/files/instsrv.exe

Download the two files above and place them in C:\Winnt or elsewhere. Open the command-line program CMD.exe (or command Line window). Input: C:\>instsrv "name of service" C:\Winnt Rvany.exe carriage return

Run Registry Program Regedit.exe

Establish the HKEY_LOCAL_MACHINE Ystem\currentcontrolset Ervices\ "name of Service" subkey. Select the name of the service and press the right button to create a new item. Name: Parameters. Select the Parameters item, and then create a new string value. "String Value" name: Application. The application value is the path and filename of the application (for example, C:\winnt\i386.exe). Select the Parameters item, and then create a new string value. "String Value" name: Appdirectory. The application value is the path to the application (for example, C:\winnt). Close the registry program and open the Control Panel-〉 management tool-〉 service. Select the name of the service and select Properties. Select the landing page and tick before "allow service to interact with desktop." Start the service. Ok!

If the command-line program interface appears, remove the "Allow service to interact with desktop" check box before restarting the service

Regedt32.exe > 32-bit Register Service 32-bit registration services


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.