Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to run bat file to produce text log of ping an  (Read 10829 times)

0 Members and 1 Guest are viewing this topic.

troy

  • Guest
How to run bat file to produce text log of ping an
« 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

MalikTous

  • Guest
Re: How to run bat file to produce text log of pin
« Reply #1 on: June 22, 2004, 04:41:32 AM »
Use the > (direct) character.

ping 192.168.1.255 > c:\logdir\pinglog.txt

troy

  • Guest
Re: How to run bat file to produce text log of pin
« Reply #2 on: June 22, 2004, 04:10:04 PM »
Thanks works like a charm , I had the right Idea just missed a bit