VMware启动服务助手 v1.0.bat 迷南。 2022-08-04 19:30 175阅读 0赞 VMware启动服务助手 v1.0.bat 测试:VMware Workstation v8.0.3 绝对可用 今天写了一个方便VMware Workstation在Windows下启动和关闭服务,等待小白来测试,有问题请留言告诉我,谢谢使用。 功能:1.启动服务 2.关闭服务 3.设置手动 4.设置自动 5.设置禁用 6.退出 使用说明: 1.请将下面的文件保存成 VMware启动服务助手 v1.0.bat 2.直接在Windows下双击运行。 @echo off title VMware启动服务助手 v1.0 :menu cls echo. ------------------------------------------------------------ echo. + 欢迎使用VMware启动服务助手 + echo. + 指令菜单: + echo. + 1.启动服务 2.关闭服务 3.设置手动 + echo. + 4.设置自动 5.设置禁用 6.退出 + echo. + + echo. + 温馨提醒: + echo. + 1.请关闭服务后,再设置启动方式 + echo. + 2.设置方式生效后,请启动服务 + echo. + 作者:风云无痕 QQ:925776958 版本 1.0 时间:2012-06-15 + echo. ------------------------------------------------------------ echo. echo. 日期:%date% 时间:%time% echo. set choose="" set /p choose= 请输入指令\[1/2/3/4/5/6\]: if /i "%choose%"=="1" (goto:start) if /i "%choose%"=="2" (goto:stop) if /i "%choose%"=="3" (goto:demand) if /i "%choose%"=="4" (goto:auto) if /i "%choose%"=="5" (goto:disabled) if /i "%choose%"=="6" (goto:exit) :: 1 → start :start echo. net start VMAuthdService net start VMnetDHCP net start VMUSBArbService net start "VMware NAT Service" net start VMwareHostd echo 服务已成功启动! pause goto:menu :: 2 → stop :stop echo. net stop VMnetDHCP net stop "VMware NAT Service" net stop VMwareHostd net stop VMAuthdService net stop VMUSBArbService echo 服务已成功关闭! pause goto:menu :: 3 → demand : demand sc config VMAuthdService start= demand sc config VMnetDHCP start= demand sc config "VMware NAT Service" start= demand sc config VMUSBArbService start= demand sc config VMwareHostd start= demand pause goto menu :: 4 → auto :auto sc config VMAuthdService start= auto sc config VMnetDHCP start= auto sc config "VMware NAT Service" start= auto sc config VMUSBArbService start= auto sc config VMwareHostd start= auto pause goto:menu :: 5 → disabled :disabled sc config VMAuthdService start= disabled sc config VMnetDHCP start= disabled sc config "VMware NAT Service" start= disabled sc config VMUSBArbService start= disabled sc config VMwareHostd start= disabled pause goto menu :: 6 → exit :exit cls echo. 谢谢使用WMware启动助手... ping -n 2 127.0.0.1>nul exit
还没有评论,来说两句吧...