Get current CPU, RAM and Disk drive usage in C#
How to get the CPU, RAM and Disk drive usage of the system in C# code? Mitch Wheat Please search SO; there are several similiar questions: How to get the CPU Usage C# C#: List all processes and their current memory & CPU consumption? How do I retrieve disk information in C#? Here is a solution which will output disk usage, the total disk percent being used at the time that Timer99 is polled: using System; using System.Diagnostics; using System.Windows; namespace diskpercent { public partial class MainWindow : Window { DispatcherTimer Timer99 = new DispatcherTimer(); public MainWindow() {