ajbharani
March 27th, 2008, 03:50 AM
Hello friends
I want to count the number of currently running processes with a particular name. I did like this
Console.WriteLine(Process.GetProcessesByName("svchost.exe").Length.ToString());
It returns 0.
But actually 6 such processes are running. What's the fault?
Regards
Bharani
I want to count the number of currently running processes with a particular name. I did like this
Console.WriteLine(Process.GetProcessesByName("svchost.exe").Length.ToString());
It returns 0.
But actually 6 such processes are running. What's the fault?
Regards
Bharani