Skip to content

Instantly share code, notes, and snippets.

@joshschmelzle
Created November 3, 2016 18:33
Show Gist options
  • Save joshschmelzle/7d51651a9c65e3e1669a41ac4695e761 to your computer and use it in GitHub Desktop.
Save joshschmelzle/7d51651a9c65e3e1669a41ac4695e761 to your computer and use it in GitHub Desktop.
win32 ping with timestamp. to use from the command line replace %%a with %a - found hre: http://stackoverflow.com/questions/24906268/ping-with-timestamp
@echo off
ping -t localhost|cmd /q /v /c "(pause&pause)>nul & for /l %%a in () do (set /p "data=" && echo(!time! !data!)&ping -n 2 localhost>nul"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment