禁用网卡和启用网卡的脚本
脚本文件 C:\Program Files\Windows NT\Accessories\Network.bat
netsh interface set interface "本地连接" disabled
ping -n 6 127.0.0.1 > nul
netsh interface set interface "本地连接" enabled
netsh interface set interface "Local Area Connection" disabled
ping -n 6 127.0.0.1 > nul
netsh interface set interface "Local Area Connection" enabled
然后可以加入到计划任务里面,让他定时执行。或开机执行一次。