Edelweissghr 当前离线
列兵
@echo off for /f "tokens=4" %%a in ('route print^|findstr 0.0.0.0.*0.0.0.0') do ( set IP=%%a ) echo Your IP is echo %IP% pause>nul复制代码
/zhqsystem/zhq 当前离线
中尉
TOP
kingshui 当前离线
一级士官
for /f "tokens=2* delims=:" %%i in ('ipconfig^|find "IPv6"') do echo IPv6: %%i复制代码
for /f "tokens=1* delims=:" %i in ('ipconfig^|find "IPv6"^|find /v "::"') do echo %j复制代码
WHY 当前离线
上校
@echo off setlocal enabledelayedexpansion for /f "delims={}" %%i in ('wmic nicConfig where "IPEnabled='True'" get IPAddress ^| find ":"') do ( for %%j in (%%i) do ( set "IPv6=%%~j" if "!IPv6::=!" NEQ "!IPv6!" echo;!IPv6! ) )复制代码
窄口牛 当前离线
少尉