Skip to main content
Question

I want to be able to close all open windows prior to a bot starting to run. There are times when something is left open from a previous process and I want to be able to close all to start fresh.

  • February 23, 2022
  • 4 replies
  • 3605 views

The issue with the close all window action is when it comes to a program that has a file that could be saved (i.e. Excel) and the current close all option does not allow me to select Yes/No. I would like to be able to loop through all open windows and if a save option appears then to perform another action. Any ideas would be appreciated.

4 replies

Forum|alt.badge.img+20
  • Most Valuable Pathfinder
  • 2710 replies
  • February 23, 2022

Hi @Bill Gregware​ ,

 

Add this step in the bot start so it will cleanup if any excel applications are open,

 

Application: Open program/file

Pass value for "Location of the program/file" as TASKKILL

Pass value for "Parameters" as /F /T /IM excel.exe

 


Forum|alt.badge.img+6

@Bill Gregware​ : Create a re usable bot which you can use it for future automations. Create as new task and as @ChanduMohammad S​  mentioned add those steps. In the same way you can close IE/ Chrome / your applications etc.

 


Ashwin A.K
Forum|alt.badge.img+8
  • Navigator | Tier 3
  • 2445 replies
  • February 23, 2022

Hi @Bill Gregware​ ,

 

Could you try dragging in an Open Program/Application Action and pass in the applications like so?

 

image 

Kind Regards,

Ashwin A.K

 

 


Forum|alt.badge.img+12

Hello @Bill Gregware​ 

 

As mentioned in previous comment depending on your application that bot is handling you can add bot logic to perform taskkill.exe, else you can configure control room Auto login setting to "Always create new session"

 

Which will ensure to logoff windows session (if existing with any open application) and create new session for bot execution.

 

Reference: https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/administration/settings/cr-auto-login-settings.html/p>

 

Regards,

Vinod


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings