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
1 REPLY 1

david.l.morris
Level 14
I haven't tried this with the Training Order app, but there are a few ways you can try.

First, you could use the Utility - Environment VBO action 'Wait for Process' or 'Wait for Process Window'. That could tell you whether the app is running already or not.

Second, you could simply use an attach stage and try to attach to the app. If it fails, then you could effectively assume it is not open. It'd be a good idea to use a catch block, a recover, and a resume stage either in the object or in the process that calls it.

Third, you could just use the Utility - Environment VBO action 'Kill Process' to kill the app's windows process whether it is open already or not. This action, in my experience with it, does not throw errors so you can have it try to kill processes that are not open without error.

------------------------------
Dave Morris
3Ci @ Southern Company
Atlanta, GA
------------------------------

Dave Morris, 3Ci at Southern Company