常用服务启动器

来源:互联网 发布:mac无法恢复单一分区 编辑:程序博客网 时间:2024/05/02 00:16

电脑安装上虚拟机或者数据库之类大量占用电脑资源的程序会使电脑变得十分不流畅,禁用这些程序的服务能够显著提高电脑运行流畅度,但是又会给我们使用这些程序带来很多不便。为了解决这类问题,我写了一个批处理程序。这样我们就可以放心的把这些服务设置为手动启动。当我们需要这些程序的时候,只需要运行这个批处理程序就可以方便的让这些程序的服务再次的跑起来。

下面是批处理的代码:

@echo offtitle 常用软件服务启动器:startclsecho/   echo/   echo/   echo/   echo/               --------------------------------------------echo                             请回复下面命令的编号echo                             1、启动Oracle服务echo                             2、启动SQLServer服务echo                             3、启动VMware服务echo                             4、查看当前服务信息echo                             5、退出echo/               --------------------------------------------set /p b=if %b% equ 1 goto autogetipif %b% equ 2 goto setstaticipforenif %b% equ 3 goto setstaticipforinternetif %b% equ 4 cccccif %b% equ 5 exit:cccccclsservices.mscgoto start:autogetipclssc start OracleServiceSDUTTESTsc start OracleOraDb11g_home1TNSListenersc start OraclejobSchedulerSDUTTESTpausegoto start:setstaticipforinternetclssc start VMAuthdServicepausegoto start:setstaticipforenclssc start ReportServersc start MsDtsServer100sc start MSSQLFDLaunchersc start MSSQLSERVERpausegoto start



0 0
原创粉丝点击