for /f "delims=" %%i in (ip.txt) do (
ping %%i -n 1 -l 50 -w 2 | find ""Ping request could not find host %%i." /i
if not errorlevel 1 echo %%i 计算机名不正确 >> error.log & goto end
.......
echo %%i 执行命令成功 >>d:\result\succeed.log
:end
echo %%i )
每次执行的时候以遇到计算机名称不正确的,就直接跳出for循环了不执行后面的了,请高位高手帮忙看一下是什么问题??
ping %%i -n 1 -l 50 -w 2 | find ""Ping request could not find host %%i." /i
if not errorlevel 1 echo %%i 计算机名不正确 >> error.log & goto end
.......
echo %%i 执行命令成功 >>d:\result\succeed.log
:end
echo %%i )
每次执行的时候以遇到计算机名称不正确的,就直接跳出for循环了不执行后面的了,请高位高手帮忙看一下是什么问题??
