1.

Solve : Redirecting command window output to file?

Answer»

Hi.

I have a network with abt. 600 ip devices.
I want to make a quick check if the devices are up or not.
For this I put the following in a batch file:

CALL PING 10.81.195.11 > "C:\ip.txt"
CALL PING 10.81.195.12 > "C:\ip.txt"
CALL PING 10.81.195.13 > "C:\ip.txt"
CALL PING 10.81.195.14 > "C:\ip.txt"
ETC..
etc...

After the batch file has run to the end i want to EXAMINE the ping history in ip.txt to find errors, but the ip.txt is overwritten in every ping.
How can I make the result from the ping APPEND and not OVERWRITE for each LINE in the batchfile?

Best Regards, Rigor


>> instead of >

Does this work for you In fact it does!
I can see why you are classified "Mentor"....
Thanks!>> adds text to the end of the specified file
> creates a file and adds text to it



Discussion

No Comment Found