Guest User

Continuous Ping (with timestamped logging)

a guest
Jun 10th, 2016
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. echo off
  2. cls
  3. color 1F
  4. title Continuous Ping (with timestamped logging)
  5. set /p FILE=Enter filename that you wish to save log as(Don't include .txt extension):
  6. echo.
  7. set /p IP=Enter name or IP address to ping:
  8. echo.
  9. echo Pinging %IP% continuously with timestamps and logging to %FILE%.txt
  10. echo Close this window when you want to stop.
  11. :start
  12. echo. >> %FILE%.txt
  13. echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> %FILE%.txt
  14. echo The current time is: >> %FILE%.txt
  15. time /t >> %FILE%.txt
  16. Ping %IP% >> %FILE%.txt
  17. goto start
Advertisement
Add Comment
Please, Sign In to add comment