-
June 14th, 2001, 08:14 AM
#1
netstat -an
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.
-
June 14th, 2001, 08:38 AM
#2
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
As I say to all users - Shutup & Re-boot
www.djrobjones.com - everything House
-
June 14th, 2001, 10:41 AM
#3
Thanks alot that is exactly what i needed. Have a good day.
-
June 15th, 2001, 07:51 AM
#4
Registered User
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>
use ">>" instead of ">" if you wish to append to rather then create a new file
-
June 15th, 2001, 11:44 AM
#5
Registered User
Originally posted by h166:
<STRONG>
use ">>" instead of ">" if you wish to append to rather then create a new file</STRONG>
Werd. Exactamundo
DON'T PANIC
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks