ConnectWeb

@echo off
MODE con: COLS=60 lines=20
color a
taskkill /f /im knatsvc.exe
taskkill /f /im DrMain.exe
taskkill /f /im DrClient.exe

start C:DrcomDrUpdateClientDrMain.exe

:cycle

for /L %%a in (
 10,-1,0
)do (
 echo 还剩余 %%a 秒
 ping -n 2 localhost 1>nul 2>nul
 cls
)

ping 192.168.158.254 -n 1 | find "General failure" && goto :cycle

ping -n 2 localhost 1>nul 2>nul

for /F "tokens=3" %%* in ('route print ^| findstr "<0.0.0.0>"') do set "gw=%%*"

ipconfig /flushdns

route add 210.44.0.0 mask 255.255.0.0 %gw% metric 25

ping -n 2 localhost 1>nul 2>nul

rasdial VPN admin 1313 /phonebook:c:
asphone.pbk

for /L %%a in (
 20,-1,0
)do (
 echo 开启猎豹代理还剩余 %%a 秒
 ping -n 2 localhost 1>nul 2>nul
 cls
)

cd /d D:Program Files (x86)kingsoftkwifi
start kwifi.exe

for /L %%a in (
 10,-1,0
)do (
 echo %%a 秒后关闭
 ping -n 2 localhost 1>nul 2>nul
 cls
)

exit

Keep it simple!
作者:N3verL4nd
知识共享,欢迎转载。
原文地址:https://www.cnblogs.com/lgh1992314/p/5834782.html