Windows Command
ping -t ip or host name|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 ip or host name>nul" >C:\pingtest.txt
Windows Batch Script
ping -t ip or host name|cmd /q /v /c "(pause&pause)>nul & for /l %%a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 ip or host name>nul" >C:\pingtest.txt
Read More: https://www.raymond.cc/blog/timestamp-ping-with-hrping/
ping -t ip or host name|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 ip or host name>nul" >C:\pingtest.txt
Windows Batch Script
ping -t ip or host name|cmd /q /v /c "(pause&pause)>nul & for /l %%a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 ip or host name>nul" >C:\pingtest.txt
Read More: https://www.raymond.cc/blog/timestamp-ping-with-hrping/