我用的bat代码实现的,加到系统任务中,每天自动执行!
[C#] 纯文本查看 复制代码 @echo off
echo --------------
netsh interface show interface
netsh interface set interface "VMware Network Adapter VMnet8" disable
netsh interface set interface "VMware Network Adapter VMnet1" disable
netsh interface set interface "net" disable
pause
[C#] 纯文本查看 复制代码 @echo off
echo --------------
netsh interface show interface
netsh interface set interface "VMware Network Adapter VMnet8" enabled
netsh interface set interface "VMware Network Adapter VMnet1" enabled
netsh interface set interface "net" enabled
pause |