首页 > 其他 > 详细

批处理开启/关闭软件服务源码

时间:2014-07-16 17:03:58      阅读:243      评论:0      收藏:0      [点我收藏+]

批处理使用方法:将代码复制到记事本文件里,然后修改文件后缀为*.bat格式。

                                 

SQL server2008 服务

开启服务批处理:

@echo off
sc start MSSQLFDLauncher
sc start MSSQLSERVER
sc start MSSQL$SQLEXPRESS
sc start MSSQLServeroLAPService
sc start SQLBrowser
sc start MsDtsServer100
sc start SQLSERVERAGENT
sc start SQLWriter

关闭服务批处理:

@echo off
sc stop MSSQLFDLauncher
sc stop MSSQLSERVER
sc stop MSSQL$SQLEXPRESS
sc stop MSSQLServeroLAPService
sc stop SQLBrowser
sc stop MsDtsServer100
sc stop SQLSERVERAGENT
sc stop SQLWriter

                                 

虚拟机服务

开启服务批处理:

@echo off
sc start VMwareHostd
sc start VMAuthdService
sc start VMnetDHCP
sc start VMUSBArbService
sc start "VMware NAT Service"

关闭服务批处理

@echo off
sc stop VMwareHostd
sc stop VMAuthdService
sc stop VMnetDHCP
sc stop VMUSBArbService
sc stop "VMware NAT Service"

                                 

支付宝服务

开启服务批处理:

@echo off
sc start AlipaySecSvc

关闭服务批处理:

@echo off
sc stop AlipaySecSvc

                                 

MySQL服务:

开启服务批处理:

@echo off
sc start mysql

关闭服务批处理:

@echo off
sc stop mysql

批处理开启/关闭软件服务源码,布布扣,bubuko.com

批处理开启/关闭软件服务源码

原文:http://www.cnblogs.com/xingyunblog/p/3847994.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!