Popular Posts

Tuesday, May 9, 2017

Ping Status with Date and Time stamp save in txt file

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/