@echo off
for /f "tokens=2 delims=:" %%i in ('ipconfig^|find /i "ipv4"') do (
for /f "tokens=1,2,3,4 delims=. " %%a in ('echo %%i')do (
set ip=http://%%a.%%b.%%c.1)))
start %ip%
rem 用于自动获取局域网ip,并访问网关地址
@echo off
for /f "tokens=2 delims=:" %%i in ('ipconfig^|find /i "ipv4"') do (
for /f "tokens=1,2,3,4 delims=. " %%a in ('echo %%i')do (
set ip=http://%%a.%%b.%%c.1)))
start %ip%
rem 用于自动获取局域网ip,并访问网关地址