Create windows custom service

Environment: windows10+ networking
Step 1: Download rktools
https://www.microsoft.com/en-us/download/details.aspx?id=17657
Step 2: Install rktools and
install it to C:\Program Files (x86)\ Resource Kit
third step: install the service in cmd. The
administrator runs cmd and
enters cd "C:\Program Files (x86)\Resource Kit" and
enters intsrv.exe FireRuleSrv "C:\Program Files (x86)\Resource Kit\srvany.exe "
step four: service registry installation
open \ SYSTEM \ CurrentControlSet \ services regedit HKEY_LOCAL_MACHINE \ FireRuleSrv
New key Parameters lower left FireRuleSrv
Parameters right right AppDirectory new string value, the value of the program directory, such as directory fire.cmd e:
Right-click to create a new string value Application, the value is the program name + suffix name, such as fire.cmd
Step 5: Start the service
Start FireRuleSrv and set it to automatically start
​ (end of text)

Guess you like

Origin blog.csdn.net/humors221/article/details/104388571