Computer Hope

Microsoft => Microsoft DOS => Topic started by: troy on June 21, 2004, 06:44:08 PM

Title: How to run bat file to produce text log of ping an
Post by: troy on June 21, 2004, 06:44:08 PM
I need to create a bat file that runs a ping and tracert from dos and then outputs the file to a text log of the results, I have the bat file running to ping and tracert but don't remember how to get it to dump the results to text log, help please
Title: Re: How to run bat file to produce text log of pin
Post by: MalikTous on June 22, 2004, 04:41:32 AM
Use the > (direct) character.

ping 192.168.1.255 > c:\logdir\pinglog.txt
Title: Re: How to run bat file to produce text log of pin
Post by: troy on June 22, 2004, 04:10:04 PM
Thanks works like a charm , I had the right Idea just missed a bit