How to check if there is any read/write activity for a specific harddrive with C#?
Question
I'm curious how to assess if there is any read- or write-activity for a specific harddrive at a given moment with .NET / C#. Second it would be interesting to assess the actual speed of access.
Any ideas?
Solution
Look into the Windows Management Instrumentation (WMI) APIs which are supported in the .NET Framework via the System.Management and System.Management.Instrumentation namespaces.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow