1.

Solve : outputting the results to a text file?

Answer»

I am trying to do a basic file that will output the commands to a txt file

What im basically trying to do is ping a load of DEVICES and output that ping to a text file

So

ping 10.10.10.10

Pinging 10.10.10.10 with 32 bytes of data:

Request TIMED out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 10.10.10.10:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Approximate ROUND trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, AVERAGE = 0ms


I want the output in a text file, I have been GOOGLING all over the place but cant find the answers needed.

Any help would appreciated

Try this. To overwrite an existing logfile use a single > in the first command that is outputting to the log file, to append to it use >>

Code: [Select]Ping 10.10.10.10 >c:\pinglog.log
Ping 10.10.10.11 >>c:\pinglog.logthat works awesomely

thanks



Discussion

No Comment Found