Simple Ping
If you want to check your network connectivity you can simple open command prompt and write
ping 8.8.8.8 -t
Ping with Timestamp
But, if you want to save these log into a text file simple write this code in command prompt
@echo off ping -t 8.8.8.8 /v ""|cmd /q /v:on /c "for /l %a in (0) do (set "data="&set /p "data="&if defined data echo(!time! !data!)" > D:\log.txt
D is your drive letter you can change it, where you want to save the file simply change the driver letter to E or C.
0 Comments