Ping with timestamp


ProgEngi

Member
Local time
4:43 PM
Posts
96
Visit site
OS
Windows 11
How to get continuous ping reply with timestamp using cmd (no PowerShell please) in Windows 11 24H2?

Any help will be greatly appreciated
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Various
Ping has no timestamp of it's own so something like this

Batch:
@echo off
:loop
ping -n 1 8.8.8.8
echo %date% %time%
timeout /t 1 >null
goto loop
 

My Computer

System One

  • OS
    Windows 11
 

My Computer

System One

  • OS
    Windows XP/7/8/8.1/10/11, Linux, Android, FreeBSD Unix
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 9570
    CPU
    Intel® Core™ i7-8750H 8th Gen Processor 2.2Ghz up to 4.1Ghz
    Motherboard
    Dell XPS 15 9570
    Memory
    32GB using 2x16GB modules
    Graphics Card(s)
    Intel UHD 630 & NVIDIA GeForce GTX 1050 Ti with 4GB DDR5
    Sound Card
    Realtek ALC3266-CG
    Monitor(s) Displays
    15.6" 4K Touch UltraHD 3840x2160 made by Sharp
    Screen Resolution
    3840x2160
    Hard Drives
    Toshiba KXG60ZNV1T02 NVMe 1024GB/1TB SSD
    PSU
    Dell XPS 15 9570
    Case
    Dell XPS 15 9570
    Cooling
    Stock
    Keyboard
    Stock
    Mouse
    SwitftPoint ProPoint
    Internet Speed
    Comcast/XFinity 1.44Gbps/42.5Mbps
    Browser
    Microsoft EDGE (Chromium based) & Google Chrome
    Antivirus
    Windows Defender that came with Windows
Below command is working fine in Windows PowerShell with text file with text file only
Code:
Ping.exe 8.8.8.8 -t | ForEach {“{0} - {1}” -f (Get-Date),$_} > D:\Script1\Google.txt
How can it be forced to display as well?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Various
BRAVO neemobeer thanks a ZILLION
...however, needs little polishing to get
fay9uvr.png

when stopped
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Various

Latest Support Threads

Back
Top Bottom