Kill process Internet Explorer - control active users

Hi guys,

i’ve a problem to manage the activity in object.

I’m searching to control when the bot starts if there is a IE windows open. If true the bot must kill this process. But if other users are active on same web application that run on IE, the kill process is in error.

would you have any advice for me?

Well,

Instead of kill process have you tried close application?

Keep continue on error property as true if the application is not open then iit gracefully moves on to your next activity.

Regards :slight_smile:

Thak you for your advice.

I should try to manage the situation where on a web application more users can access at the same time, for example me and the bot and the application runs on the same machine.
If during the operations of the bot an error is generated and the browser window remains open, the bot restarting must be able to close the window, in my case the best solution and kill the process and restart, but since I am connected to the same application, the kill process operation is in error.
Unfortunately, Uipath’s close app is not effective in this case.

Well,

i guess you can run the following through a batch file ]

taskkill /F /IM iexplore.exe /T

this will close if IE instances are running even in the background :slight_smile:

Thank you.

I will try to use the taskkill by uipath using vb code to invoke the command during bot processing if necessary.

You’re welcome.

If you don’t want to use external catch file, you can use invoke powershell.