Search found 3 matches

by thamoomin
10 Sep 2013 09:25
Forum: DOS Batch Forum
Topic: Batch file which pings and timestamps alongside
Replies: 6
Views: 17750

Re: Batch file which pings and timestamps alongside

Thanks. Just be aware that this reports successful pings only. If you also want time outs then change the find "TTL" to this and it should work. find /i "reply from" Thanks, did notice that and changed it to reply, couple of quick questions, been trying to understand the code, o...
by thamoomin
10 Sep 2013 02:00
Forum: DOS Batch Forum
Topic: Batch file which pings and timestamps alongside
Replies: 6
Views: 17750

Re: Batch file which pings and timestamps alongside

@echo off set "file=c:\users\rod\desktop\ping.txt" set ip=www.google.com setlocal enabledelayedexpansion :loop for /f "delims=" %%a in ('ping %ip% -n 1 ^|find "TTL" ') do >> "%file%" echo %%a - !date! @ !time!&echo %%a goto :loop Thanks foxidrive, this wa...
by thamoomin
09 Sep 2013 05:59
Forum: DOS Batch Forum
Topic: Batch file which pings and timestamps alongside
Replies: 6
Views: 17750

Batch file which pings and timestamps alongside

Hi, Wondering if anyone can help, I have the following code: echo OFF cd c:\users\rod\desktop echo %time% >> ping.txt ping ***.244.137.254 -t >> ping.txt Above prints to the text file no problems in the following format: 12:36:15.25 Pinging ***.244.137.254 with 32 bytes of data: Reply from ***.244.1...