sc命令建立和刪除服務

安裝服務code

sc create 服務名 binPath= "C:\Users\Administrator\Desktop\win32srvDemo\win32srvdemo\Debug\win32srvDemo.exe"

注:blog

服務名:指建立的Windows服務名class

binPath:指Windows服務程序的路徑配置

二、配置服務bug

sc config 服務名 start=AUTO

三、開啓服務程序

net start 服務名

四、關閉服務demo

net stop 服務名

五、刪除服務top

sc delete 服務名
相關文章
相關標籤/搜索