Live Chat Icon For mobile
Live Chat Icon

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

Platform: WinForms| Category: Deployment

Use the static Process.GetProcesses() found in the System.Diagnostics namespace.

[C#]
	Using System.Diagnostics; 
	... 
	foreach ( Process p in Process.GetProcesses() ) 
		Console.WriteLine( p ); // string s = p.ToString();

[VB.NET]
	Imports System.Diagnostics
	...
	Dim p As Process
	For Each p In  Process.GetProcesses()
   		Console.WriteLine(p) ’ string s = p.ToString()
	Next p

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.