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”

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。