
CODE: [Copy to clipboard][ Last edited by namejm on 2006-9-11 at 01:26 ]@echo off
for /f "tokens=1-3* delims=." %%i in (a.txt) do (
if %%i geq 0 if %%i leq 255 (
if %%j geq 0 if %%j leq 255 (
if %%k geq 0 if %%k leq 255 (
if %%l geq 0 if %%l leq 255 (
echo %%i.%%j.%%k.%%l 是IP地址
)
)
)
)
)
echo 按任意键退出...
pause>nul
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |