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
© 版权声明
文章版权归作者所有,若需转载,请在显著位置标志该文章地址。