Hello everyone. I have a quick question i hope you could help me with. Is there a way to setup a batch file to show the results of a netstat -an and save it to a text file for logging? Thanks for any help.
Printable View
Hello everyone. I have a quick question i hope you could help me with. Is there a way to setup a batch file to show the results of a netstat -an and save it to a text file for logging? Thanks for any help.
put >lpt1 etc for prtiners or for a file
>test.txt
so type netstat -an >stats.txt
you then get a text file of the screen including the bits that go off the top of the screen.
Hope this helps
Thanks alot that is exactly what i needed. Have a good day.
use ">>" instead of ">" if you wish to append to rather then create a new fileQuote:
Originally posted by TeddyRuxspin:
<STRONG>put >lpt1 etc for prtiners or for a file
>test.txt
so type netstat -an >stats.txt
you then get a text file of the screen including the bits that go off the top of the screen.
Hope this helps</STRONG>
Werd. ExactamundoQuote:
Originally posted by h166:
<STRONG>
use ">>" instead of ">" if you wish to append to rather then create a new file</STRONG>