windows ping 带时间
windows powershell 执行:
ping.exe -t 202.96.209.5 |Foreach{“{0} – {1}” -f (Get-Date),$_}
ping.exe -t 192.168.0.254 | Foreach {“{0} – {1}” -f (Get-Date), $_} | Tee-Object -FilePath “D:\ping_log.txt”
windows powershell 执行:
ping.exe -t 202.96.209.5 |Foreach{“{0} – {1}” -f (Get-Date),$_}
ping.exe -t 192.168.0.254 | Foreach {“{0} – {1}” -f (Get-Date), $_} | Tee-Object -FilePath “D:\ping_log.txt”