I am trying to create a watch dog. in C# Which will keep looking for a exe if it is running or not if that exe is not running. Watch dog should automatically start the exe.
Example :
My exe is notepad.exe. I want to run a watch dog to see notepad.exe is running all the time. If some body closed it or some hoe some crash has happened watch dog should start the notepad.exe automatically.
Please help me with some snipet or some link for this approch.
Thanks