Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- del pinglog.txt
- for /f "tokens=*" %%A in ('ping 8.8.8.8 -n 1 ') do (echo %%A>>pinglog.txt && GOTO Ping)
- :Ping
- for /f "tokens=* skip=2" %%A in ('ping 8.8.8.8 -n 1 ') do (echo %date% %time% %%A>>pinglog.txt && GOTO Ping)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement