- 帖子
- 6
- 积分
- 28
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2012-11-23
|
回复 jiay2796
把4楼代码里面的@echo off删掉,把执行过程给我看看。
BAT-VBS 发表于 2012-11-23 15:30
for /f "tokens=4" %%a in ('route print^|findstr 0.0.0.0.*0.0.0.0') do (
set IP=%%a
)
echo %IP% | findstr "^192.168" >nul
if errorlevel 1 (
start "" /max "c:\Program Files\Internet Explorer\IEXPLORE.EXE" "http://221.176.225.234"
) else (
start "" /max "c:\Program Files\Internet Explorer\IEXPLORE.EXE" "http://192.168.0.200"
)
pause
如果调用默认浏览器。怎么弄! |
|