Click here to Skip to main content
15,885,182 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello.

I want to get network usage of specific process.

I've searched many forums but they just said "using WMI".

So i find WMI interface.

I think "Win32_PerfRawData_PerfProc_Process" will be provide resource information each process.

But still i have question.

What is network usage from that resource information?

Some resource information describes "this means .... including file, network, and device I/Os"

But these are not only for network.

So, i can't use these.



Please give me your advise.

How can i get network usage of specific process?
Posted

1 solution

You can use the netstat program:
netstat -b // Will give you the process involved in each connection
netstat -? // Will give you all possible options for the netstat console

From the output you will be able to get the process for each connection (process name is between brackets, easy to get with a simple regular expression).
 
Share this answer
 
Comments
osguli 10-Jul-15 5:02am    
Thank you for answer.
I tried to test netstat. But it does not present network usage.
What i want data is usage(number).
ex)abc.exe using 200Mbps.

I will find netstat option repeatedly.

Thanks a lot *.^

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900