Home

Windows で ping を打ちつつ日時も出力する

2022/12/17

> ping -t 192.2.0.1 | ?{$_ -ne ""} | %{(Get-Date).ToString() + " $_"} >> ping.log

192.2.0.1 は任意のIPに。世の中の迷惑にならない場所にしてください。

  • 【Windows】pingコマンドの結果に時間を表示する | とあるオタクの徒然日記
  • PoweShellでのファイル出力方法あれこれ - Qiita

Circle

Written by Circle
A mound built by the accumulation of hyperlinks are like Kowloon.

  • ← SysWOW64 メモ
  • PowerShell メモ →
  • About
© 2023, Built with Gatsby and Leonids theme.