我在2000、XP和2003下编写了个双网卡的共用的路由,请问在Win7上如何修改?请高手帮我修改修改啊!具体程序如下:
@echo off
net user Administrator /Active:yes
for /f "tokens=1,2* delims= " %%i in ('ipconfig /all') do (
if "%%i %%j"=="IP Address." (
for /f "tokens=2 delims=:" %%a in ("%%k") do set "ip=%%a"
))
route delete 0.0.0.0 mask 0.0.0.0 %IP%
route add 110.0.0.0 mask 255.0.0.0 %IP%
route add 120.0.0.0 mask 255.0.0.0 %IP%作者: GNU 时间: 2010-4-26 13:23