Difference between revisions of "Ping printing the time stamp"
From Tech-Wiki
(Created page with "Category:Microsoft This command will ping a host whilst printing the current time stamp. Useful for long pings when you need to know when the packet was lost ping -t 8.8...") |
|||
Line 1: | Line 1: | ||
[[Category:Microsoft]] | [[Category:Microsoft]] | ||
+ | '''[[Microsoft#Misc|Back to Misc]]''' | ||
This command will ping a host whilst printing the current time stamp. Useful for long pings when you need to know when the packet was lost | This command will ping a host whilst printing the current time stamp. Useful for long pings when you need to know when the packet was lost | ||
ping -t 8.8.8.8|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!time! !data!)&ping -n 2 localhost>nul" | ping -t 8.8.8.8|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!time! !data!)&ping -n 2 localhost>nul" |
Latest revision as of 16:59, 10 November 2016
This command will ping a host whilst printing the current time stamp. Useful for long pings when you need to know when the packet was lost
ping -t 8.8.8.8|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!time! !data!)&ping -n 2 localhost>nul"