How to using bat file or cmd command to install .bat or .exe file as a windows service?
CodePudding user response:
You could run this in your cmd to install or uninstall:
Install
sc create send_service binPath= "E:\Release\abcd.exe" DisplayName= "ABCD windows Serivce" start= auto
Uninstall
sc delete send_service
CodePudding user response:
You can use this windows service wrapper (https://github.com/winsw/winsw).