由买买提看人间百态

topics

全部话题 - 话题: eobat
(共0页)
a****x
发帖数: 231
1
来自主题: Hardware版 - VPN和本地连接有办法方便切换么
取消所有路由走vpn?然后搞个批处理文件改路由?
我用这个批处理加192.168.0.0,10.0.0.0 到路由表,你可以参考一下。
==================================================================
@rem - ASB (10 Oct 2005): Get IP Address and Break Into Individual Octets
@ECHO OFF
SETLOCAL
for /f "tokens=3-7 delims=:. " %%v in ('ipconfig ^| find /i "address"') do
call :GetIPs %%v %%w %%x %%y
ENDLOCAL
GOTO :EOBAT
rem SUBROUTINE
rem %1-%4 = 4 Octets of IP address
if not "%1"=="192" GOTO :EOBAT
if not "%2"=="168" GOTO :EOBAT
ECHO %1.%2.%3.%4
route add 192.168.... 阅读全帖
(共0页)