ping /n 10 localhost
我想在第五次就自动暂停PING,然后再按任意键就继续PING剩下的5次
我想在第五次就自动暂停PING,然后再按任意键就继续PING剩下的5次
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@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 :redoOriginally 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
Originally posted by lfopt at 2008-3-20 02:33 PM:
:a
ping /n 5 192.168.1.1
pause
ping /n 5 192.168.1.1
pause
goto :a
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+= ...