- 帖子
- 4
- 积分
- 180
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2009-1-31
|
我在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% |
|