JDP 發表於 2013-9-3 13:24:44

Timestamp Ping 在 Ping 前方加上時間

@echo off
for /f "tokens=*" %%A in ('ping %1 -n 1') do (echo %%A && GOTO Ping)
:Ping
for /f "tokens=* skip=2" %%A in ('ping %1 -n 1') do (echo %date%%time% %%A && GOTO Ping)使用範例:
timeping 192.168.1.254

如果要存到文字檔:
timeping 192.168.1.254 > ping.log
要停的時候按Ctrl+C,再按下Y,再按下Enter

Reference: http://www.pcreview.co.uk/forums/timestamp-ping-t1467756.html
頁: [1]
查看完整版本: Timestamp Ping 在 Ping 前方加上時間