Using PerformanceCounters to target specific drives
Guys, I have the following code: using System.Diagnostics; private PerformanceCounter diskRead = new PerformanceCounter(); private PerformanceCounter diskWrite = new PerformanceCounter(); diskRead.CategoryName = "PhysicalDisk"; diskRead.CounterName = "Disk Reads/sec"; diskRead.InstanceName = "_Total"; diskWrite.CategoryName = "PhysicalDisk"; diskWrite.CounterName = "Disk Writes/sec"; diskWrite.InstanceName = "_Total"; This code keeps track of Disk Reads per second and Disk Writes per second and it works fine. My question is, how do I keep track of reads and writes of one specific drive? I have