Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo off
- cls
- color 1F
- title Continuous Ping (with timestamped logging)
- set /p FILE=Enter filename that you wish to save log as(Don't include .txt extension):
- echo.
- set /p IP=Enter name or IP address to ping:
- echo.
- echo Pinging %IP% continuously with timestamps and logging to %FILE%.txt
- echo Close this window when you want to stop.
- :start
- echo. >> %FILE%.txt
- echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> %FILE%.txt
- echo The current time is: >> %FILE%.txt
- time /t >> %FILE%.txt
- Ping %IP% >> %FILE%.txt
- goto start
Advertisement
Add Comment
Please, Sign In to add comment