I want to know how to kill just one process, but I’m getting an exception thrown because the process isn’t running, but if it is I want it to be killed before I try to relaunch the process.
So If the process is running, I want to kill it, then relaunch it.
I put a kill process before I launch it but I’m getting an exception thrown, because the process isn’t actually running. I don’t really want it to continue on error… because what if something else happens. I need to know!
So I don’t want to do get processes, then loop through every single process out of the hundreds I guess that are running on this server. I just want to search for that one process and then kill it if it’s found.