• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 471
  • Last Modified:

get bandwith usage of drives

anyone have any Idea on how I can check the bandwith usage on a drive ....
like the CD is using X
and the Hd is using y............
0
Micki-Weaver
Asked:
Micki-Weaver
1 Solution
 
iHadiCommented:
Hi Micki-Weaver

Add a performance counter component to your form from the toolbox under the components tab.

Set the following properties of the component from the properties window:
            CategoryName -> PhysicalDisk
            CounterName -> Disk Bytes/sec
            InstanceName -> _Total

Now you can get the number of bytes been written or read from the HD using the following code:
            MessageBox.Show(performanceCounter1.NextValue().ToString());

You can do the same for the CD drive.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now