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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?
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?
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!
ASKER