Link to home
Start Free TrialLog in
Avatar of cmistre
cmistre

asked on

Any code to automatically close a browser window?

Hi,

I have to run a web based script at regular intervals in order to performs some MySql Functions.

The function itself is currently opening a browser window, although I really dont have anything I need to view on those pages, and when the function is done its leaving a browser window open.  

It runs several times a day and find myself needing to log in and close the browser windows so they don't accumulate and hog up too much memory.  Is there any command I can issue that will close these windows, or some script I can write that will do this?
Avatar of cmistre
cmistre

ASKER

I forgot to clarify, the point I was making by saying I dont need to see anything on the pages was that, if there was a way to "hit" the page without using a browser would be another way to accomplish the automated updates and bypass the browser window problem.
ASKER CERTIFIED SOLUTION
Avatar of TCB1
TCB1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cmistre

ASKER

I took a look at that and dont really understand how I would use this?  

The process is kickstarted by the successful update of a file which is already occurring automatically.  When the file is updated, it can launch any program at all so I had set up an exe file that did nothing more than C:/directory/to/IE/IE.exe "http://mysites/updatepage.cfm"  This page is the beginning of a cycle of deletes and imports based on comparing an old MySQL table to the new updated one.  

Maybe there is a more efficient way to call on this page so I dont have to close a window?   If it can close a browser window, by looking at the website, I dont have any clue how to use it to do so.  Have you used it before to where you can help me figure out where to install it and how to call the function in the very last page at the end of the entire process?
Avatar of cmistre

ASKER

Thanks for the tip.  I was able to use this program to work it out for now, although I'd like to get something that isn't exclusive to windows at some point.  Thanks!