lj84831253 当前离线
六级士官
set /p IP=请输入 echo %IP%>tmp for /f "delims=. tokens=1,2,3,4" %%a in (tmp) do ( echo %%a.%%b.%%c.%%d )复制代码
mxxcgzxxx (黑雨)当前离线
中尉
@echo off setlocal ENABLEDELAYEDEXPANSION :1 set "ip=" for /l %%1 in (1,1,4) do ( set /p p=. set "ip=!ip!!p!" if %%1==4 goto :2 set "ip=!ip!." ) :2 echo %ip% pause>nul复制代码
TOP
hanyeguxing (寒夜孤星)当前离线
荣誉版主
set /p IP=请输入 for /f "tokens=1-4 delims=." %%a in ("%IP%") do echo %%a.%%b.%%c.%%d复制代码
set /p IP=请输入 setlocal ENABLEDELAYEDEXPANSION for /f "delims=. tokens=1,2,3,4" %%a in ("!ip!") do ( )复制代码