I want to make a program that will check to see if a process is running. And if it is not running, the program should start it back up.
Basically i made a new process. This is what is executed when the button is clicked.
System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = "program.exe"; proc.Start();
I also have it enabling a timer.
timer1.Enabled = "true";
This is the part i'm having trouble with. I'm trying to think of a way to have the timer check to see if the program is running, and if its not to start it up.
Any suggestions on how to do this?