亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

檢測(cè)ip格式是否正確的批處理

 更新時(shí)間:2009年05月11日 12:56:26   作者:  
檢測(cè)IP格式是否標(biāo)準(zhǔn)

復(fù)制代碼 代碼如下:

@echo off
:: 檢測(cè)IP格式是否標(biāo)準(zhǔn)
:: code by jm 2006-10-23
:begin
cls
set input=
set /p input=請(qǐng)輸入IP:
echo %input%|findstr "^[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*$">nul||goto fail
set _input=%input:.= %
call :check %_input%

:check
if "%4"=="" goto fail
for %%i in (%1 %2 %3 %4) do (
if %%i gtr 255 goto fail
)
cls
echo %input% 是正確的IP
echo.
pause
goto begin

:fail
cls
echo %input% 是錯(cuò)誤的IP
echo.
pause
goto begin

相關(guān)文章

最新評(píng)論