I want to get a list of all the processes running on my system. The idea is to write a program which will run continiuosly on the system and will check if a perticular process is running and will take some decisions based on it.
Thanks,
Deepak
Loading
Posted Jun 21, 2006, 4:50 AM
//Code
Process[] objAllProcess= Process.GetProcesses();
foreach(Process prc in objAllProcess){
//Do whatever you want to do with each process represented by the prc object.
//This example will show each process name in a messagebox.
MessageBox.Show(prc.ProcessName.ToString());
}
hope solved ur problem.