windows下ping日志记录到文档

ping -t 192.168.1.1 |Foreach{"{0}-{1}" -f (Get-Date),$_}>D:pinglog.txt

使用windows自带的powershell进行操作。
windows下ping日志记录到文档_第1张图片

你可能感兴趣的:(玩转Window10操作系统,powershell)