启动|关闭Windows服务的bat问及那

启动
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe E:\Debug\WindowsServiceTest.exe
Net Start FileService
sc config FileService start= auto
pause
关闭
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe /u E:\Debug\WindowsServiceTest.exe
pause
 
 
pause-------(保持窗口不关闭,可以去掉)
posted @ 2017-07-11 11:26  sanpi1992  阅读(275)  评论(0编辑  收藏  举报