Wednesday, 17 April 2024

Timestamp Ping Export to a Text File.

 In this blog i will show you, How you can ping to a destination with  date and time by using CMD and also you can export the ping report to a text.


Find the command given below.


C:\Users\hp>ping -t google.com|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 google.com>nul" >D:\pingtest.txt

Once you will enter the above command on your CMD then this script will create a text file in your computer and it will store the ping reports in that notepad file.




No comments:

Post a Comment