4
I have some scheduled tasks that opens IE Windows on the background to execute periodic routines.
The problem is, as the day goes on, several IE instances are left executing on the background and this leaves less free memory to work on the server.
The tasks are configured to stop and kill still running instances when it starts and it's also configured to kill instances running for more than 1 hour. All this seems to not work.
I've tried to include a JavaScript window.close()
at the bottom of the page, but it didn't work. I suspect it's becouse of security settings that asks the user when there are non interactive scripts trying to close the window.
Q: Is there a way to close those windows after they have done it's work automatically?
Edit:
These are scheduled tasks in Windows Task Scheduler that executes Internet Explorer directly passing na URL to open.
It seems that there is no way of doing this only with the scheduled tasks or Windows native comands and utilities. I can't close all instances of the browser sice I have more routines that run at different time intervals. I've used a script to work this out. – Ricardo Souza – 2015-06-22T16:39:21.843