I have a Desktop application for Microsoft NAV system. What is the process name for this so I can kill it at the beginning of execution?
My program deals with NAV system, and it will open the application when I start the program. But if it is already open, I want to kill the process and close it.
But I can’t find the process name for this. How can I find it?
Also, in general, how can you find the process name for killing purposes, for any desktop applications?
Finally, if killing process has a pop up such as “Do you want to save your work before closing?” etc, how can I deal with it? I can only think of using “Find element” or something, with if-statement.