echo off rem rename extension from .txt to .bat rem rem this DOS script will ping 10 times then repeat rem it has the advantage that the PC time is displayed within the pings SET /P IPadd=ip address please: title ping %IPadd% :start ping %IPadd% -w 100 -n 10 echo ------------------- echo time is %time% echo ------------------- GOTO start