cancel
Showing results for 
Search instead for 
Did you mean: 

Kill the open Application before Launch if already open

AbhayVerma1
Level 2
​​Hi ,

how to identify the open desktop application (Training Order) and then close it before we launch a fresh? . What Object and Action would be utilized to do so.

TA
Abhay
2 REPLIES 2

Carl__Carter
Staff
Staff
Hi Abhay,

There are a few ways you could achieve this, but by far the simplest is to use an Action Stage which calls the 'Kill' action. This is found in the Business Object 'Utility - Environment'.

The 'Process Name' input is the name of the Windows process name which you want to close (omitting the .exe). You can then launch a fresh session of the process.

If there is the possibility of multiple Windows processes with the same name, and you wanted to kill a specific session, you would have to use a combination of a Read Stage and a Decision Stage to check if connected to the application, followed by a Navigate Stage to Attach (if not connected), and finally using a Navigate Stage to Terminate the application.

If your requirement is the second option, then please review Section 6 of Foundation Training on the Blue Prism University which will take you through the steps to achieve this.

Hope this helps.

------------------------------
Carl Carter
Developer Program Manager
Blue Prism
Europe/London
------------------------------

​Hi Carl,

Thanks for your input. It worked.

Many Thanks,
Abhay Verma

------------------------------
Abhay Verma
Consultant Specialist
HSBC
------------------------------