批处理使用方法:将代码复制到记事本文件里,然后修改文件后缀为*.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