How can I get a list of all processes running on my system?

Use the static Process.GetProcesses() found in the System.Diagnostics namespace.
Using System.Diagnostics;
foreach ( Process p in Process.GetProcesses() )
Console.WriteLine( p ); // string s = p.ToString();

Imports System.Diagnostics
Dim p As Process
For Each p In Process.GetProcesses()
Console.WriteLine(p) ' string s = p.ToString()
Next p

No comments: