1、powershell 使用ping命令,回显带时间戳: ping.exe -t 网址或者IP地址 |Foreach{"{0} - {1}" -f (Get-Date),$_} 命令后面添加>D://1.txt