Ping w/ Date Stamp

J

Julian

Can someone help me with this?

I need to know how to ping an IP and append/prepend a date/time stamp to the
result and then log to a file. I need to do this ping forever until I stop
the process.

I have been searching the net and found several batch files for this, but
none work?

Thanks
 
P

Pegasus \(MVP\)

Julian said:
Can someone help me with this?

I need to know how to ping an IP and append/prepend a date/time stamp to the
result and then log to a file. I need to do this ping forever until I stop
the process.

I have been searching the net and found several batch files for this, but
none work?

Thanks

In the absence of any more detailed specification, I propose
this batch file. It will generate a ping about once every minute.

@echo off
:again
echo %date% %time% >> c:\PingLog.txt
ping 192.168.1.101 -n 1 | find /i "bytes=" >> c:\PingLog.txt
ping Localhost -n 58
goto again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Ping w/ Date Stamp 2
Excel Excel 2010 Time Stamp Button Help 1
using Strict route with ping 2
Ping Program 1
Automatic Date Stamp 3
date stamp 1
ping with loging 2
Date & Time Stamp 2

Top