Solved

netstat  printing out result or pausing

Posted on 2004-03-29
4
158 Views
Last Modified: 2010-04-13
I'm trying to use netstat to get an idea on the open ports.

Is there a way to keep netstat open long enough to print or copy and paste the reuslts.

Mine closes after 3 secs.

Thanks
fordraiders
0
Comment
Question by:fordraiders
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 44

Expert Comment

by:CrazyOne
ID: 10708801
Start > Run CMD

then run your commands
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 10708811
Also to print to a text file

NETSTAT >C:\NETSAT.txt 2>&1
0
 
LVL 20

Accepted Solution

by:
Debsyl99 earned 250 total points
ID: 10708835
Click start, run cmd - hit enter
then type netstat -a (or whatever switch you want) hit enter

This should keep the windows open any way if you run it from a dos prompt rather than the run menu.

Then you can click on the tiny c prompt icon at the top of your dos windows to bring up a menu, click on edit select all, then click on the icon again and click on edit, copy.

You should be able to paste the content into a text or word document

Deb :))
0
 
LVL 44

Assisted Solution

by:CrazyOne
CrazyOne earned 250 total points
ID: 10708949
Actually this will create the text file for you

Start > run NETSTAT -a >>C:\NETSTAT.txt

This way you don't need to open the cmd windwow and the information is housed in a text file that you can use to print from
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Explorer and WinZXip 4 541
Problems executing VBS script in Windows 2000 16 194
Pskill not working on VBS script 4 170
Windows  Active Directory  Quesiton 8 136
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
By reading this blog, MSPs will gain insight into how to improve communications with their clients as well as establish a more profitable business.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question