I have a process that some times it fails and leaves the process un-finished.
I need for the process that if in cases of error to reset and start again. By reset, I mean to close all open applications related to the process and start again.
Therefore, the first question is, how can I prevent for the process to fail. Basically if the process fails then reset and start again.
The second question is, how can I check if an application is open and if it is close it. Is it possible to do it through task manager, vba or command prompt?