2026年3月11日 星期三

使用ping同時在螢幕顯示並將結果寫入檔案

  • powershell

ping -t 8.8.8.8 | ForEach-Object { "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') $_" } | Tee-Object -FilePath "ping_log.txt"


沒有留言: