@echo off
set count=0
:redo
ping /n 1 localhost >nul
set /a count+=1
echo this is the %count% times to ping ...
set /a re=count%%5
if %re% equ 0 pause
goto :redo
Originally posted by ThinKing at 2008-3-19 02:20 AM:
@echo off
set count=0
:redo
ping /n 1 localhost >nul
set /a count+=1
echo this is the %count% times to ping ...
set /a re=count%%5
if %re% equ 0 pause
goto :redo
@echo off
set count=0
set endloop=0
:redo
ping /n 1 localhost >nul
set /a count+=1
echo this is the %count% times to ping ...
set /a re=count%%5
if %re% equ 0 (pause&set /a endloop+=1)&if %endloop%==1 goto :eof
goto :redo
Originally posted by faultcode at 2008-3-19 03:25 PM:
@echo off
set count=0
set endloop=0
:redo
ping /n 1 localhost >nul
set /a count+=1
echo this is the %count% times to ping ...
set /a re=count%%5
if %re% equ 0 (pause&set /a endloop+= ...