Network Programming

sk33v3
sk33v3 used Ask the Experts™
on
I am in need to be able to is a "netstat -ano" this is a DOS command in Windows XP. What it does is a standard netstat command except that it returns the process handle that is using the designated entry. Any help would be appreciated. thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
you could use shell to run the command and re-direct the results to a text file. Then open the file and use the data.

Shell "cmd.exe /c netstat -ano > C:\netstat.tmp", vbHide

Author

Commented:
I am wanting to avoid doing that. I would rather use API calls if I could, Possibly something that would also work on Win98 - WinXP
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
- points to twalgrave
Please leave any comments here within the
next seven days.
answer force-accepted

DigitalXtreme
CS Moderator

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial