Computer Hope
Microsoft => Microsoft DOS => Topic started 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
-
Use the > (direct) character.
ping 192.168.1.255 > c:\logdir\pinglog.txt
-
Thanks works like a charm , I had the right Idea just missed a bit