How to using bat file or cmd command to install.bat or.exe file as a windows service?
You could run this in your cmd to install or uninstall:
sc create send_service binPath= "E:\Release\abcd.exe" DisplayName= "ABCD windows Serivce" start= auto
sc delete send_service
You can use this windows service wrapper ( https://github.com/winsw/winsw ).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.