Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ echo off
- ::Ścieżka do pliku w którym zapisujemy wynik
- set logFilePath=c:\ping.txt
- ::Host docelowy
- set destAddress=google.com
- ::Ilość prób
- set testQty=20
- ::Długość przerwy pomiędzy seriami w milisekundach
- set pause=30000
- :START
- echo %date% >> %logFilePath%
- echo %time% >> %logFilePath%
- ping %destAddress% -t -n %testQty% >> %logFilePath%
- ping 1.1.1.1 -n 1 -w %pause%>nul
- goto START
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement