Sorry for the newbie question but I am very new and very much still learning.
I wish to monitor several processes to see if they are running, the problem is that they have the same process name. I was going with something like.
So if there are two with the same name this does not seem to be the way to go. Can someone point me int he write direction. Thanks
I wish to monitor several processes to see if they are running, the problem is that they have the same process name. I was going with something like.
Code:
Process[] ServerRunning = Process.GetProcessesByName("servername");
if (ServerRunning.Length == 0)
{
tabServer.BackgroundImage = Properties.Resources.redtab;
}
else
{
tabServer.BackgroundImage = Properties.Resources.greentab;
}
Comment