把PING 的结果记录保存为TXT,
摘要:
ping -t 192.168.25.1| ForEach-Object { $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" Write-Host ("[{0}] {1}" -f $timestamp, $_) Add-Content -Pat 阅读全文
posted @ 2024-12-09 12:29 stoneyeung 阅读(4) 评论(0) 推荐(0) 编辑