Advertisement
Guest User

pinglog

a guest
Feb 21st, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. @echo off
  2. del pinglog.txt
  3. for /f "tokens=*" %%A in ('ping 8.8.8.8 -n 1 ') do (echo %%A>>pinglog.txt && GOTO Ping)
  4. :Ping
  5. 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