Send output of ping to txt file

Hi
i need to send the results of pinging an ip address to a text file. I am writing a app that will ping an address. The dos box must close automatically when it is done, i know u can write the results to a file but cannot remeber the parameters

thanx
:)

Craig
LVL 4
CraigLazarAsked:
Who is Participating?
 
coggieConnect With a Mentor Commented:
Hi Craig,

You need to create a batch file and place in it:-

ping "PC/IP address" > "File to pipe to"

Hope this helps,

Graeme

0
 
CraigLazarAuthor Commented:
Thanx allot for the help, perfect

:)

Craig
0
 
wgramlichCommented:
Is there a way to get the date and time in the text file?
0
All Courses

From novice to tech pro — start learning today.