Scripting - Ping date and time log creation and real time view

Often it could be useful to ping a remote host and save information with date and time indication as well. Useful for statistical and analysis purpose

At the same time it would be very useful to view real time log progress too.

You could get this result following these steps:

  1. Create a .cmd scripting file with this command, in yellow information that need to be customized.
    REMARK: Folder location must exist.

    ping -t|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2>nul" >C:\tempt\
  2. Utilize CMTrace.exe log viewer tool (for SCCM tool) :
  3. Here it is result that appear using previously script and CMTrace conjunctively: