域名添加静态路由.bat @ECHOOFF setvar=www.baidu.com for/f"skip=1tokens=2delims=["%%ain('ping%var%')do( for/f"tokens=1delims=]"%%bin("%%a")do( echo%%b>>ip.txt ) ) for/f"tokens=1,2,3,4delims=."%%ain(ip.txt)do(set"IP=%%a.%%b.%%c.0") echo%IP% routeadd%IP%mask255.25