Home / Microsoft / Microsoft DOS / How to run bat file to produce text log of ping an
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: How to run bat file to produce text log of ping an  (Read 3496 times)
troy
Guest
« 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
IP logged
MalikTous
Guest
« Reply #1 on: June 22, 2004, 04:41:32 AM »

Use the > (direct) character.

ping 192.168.1.255 > c:\logdir\pinglog.txt
IP logged
troy
Guest
« Reply #2 on: June 22, 2004, 04:10:04 PM »

Thanks works like a charm , I had the right Idea just missed a bit
IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / How to run bat file to produce text log of ping an « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.065 seconds with 18 queries.