简体   繁体   中英

How to install .bat or .exe file as a windows service?

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:

Install

sc create send_service binPath= "E:\Release\abcd.exe" DisplayName= "ABCD windows Serivce" start= auto

Uninstall

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM