This will output to a file c:\temp\pinglog.txt. The ping is run every 30 seconds and returns 10 pings at a time.
@echo off
:START
echo ***Start*** >> c:\temp\pinglog.txt
date/t >> c:\temp\pinglog.txt
time/t >> c:\temp\pinglog.txt
ping lookout.temp.com -n 10 >> c:\temp\pinglog.txt
echo ***End*** >> c:\temp\pinglog.txt
@ping 127.0.0.1 -n 30 -w 1000 > nul
goto START
No comments:
Post a Comment