由于VM虚拟机的网络连接造成飞秋不能正常启动,所以把网络连接禁用了.但每次使用VM步骤会很繁琐.所以做了个批处理.
启动
:启动,打印命令 @echo on net start vmnetdhcp net start "VMware NAT Service" :启用网络连接 netsh interface set interface name="VMware Network Adapter VMnet1" admin=ENABLED netsh interface set interface name="VMware Network Adapter VMnet8" admin=ENABLED :启动程序 "D:/Program Files/VMware/vmware.exe" :暂停 pause
停止
:停止服务 @echo on net stop vmnetdhcp net stop "VMware NAT Service" :禁用网络连接 netsh interface set interface name="VMware Network Adapter VMnet1" admin=DISABLED netsh interface set interface name="VMware Network Adapter VMnet8" admin=DISABLED :强杀进程 taskkill /F /im vmware-tray.exe :暂停 pause