Windows服务用bat命令安装与卸载

//安装windows服务
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe YHMesssge.exe
Net Start Service1
sc config Service1 start= auto

//卸载windows服务
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /u YHMesssge.exe

posted @ 2020-09-14 17:25  积山海  阅读(350)  评论(0编辑  收藏  举报