simple Ping with timestamp
Copy and paste below into a batch file, e.g. “test-ping.cmd”
Edit the Address value to the host you want to ping
@echo off : Gerard ORourke : simple PING with Timestamp set ADDRESS=127.0.0.1 Set COUNT=60 set FILENAME=Output-PING.txt echo Ping Started. Pinging Address: %ADDRESS% echo Please Check Output File %FILENAME% to confirm Ping test is OK :start echo. >> %FILENAME%% echo *********************>> %FILENAME%% echo %date% >> %FILENAME%% echo %time% >> %FILENAME%% ping %ADDRESS% -n %COUNT% >> %FILENAME%% goto start