
IE window close after script is done
I don't know if IE or WScript does the work, but if you have no references to an instance of IE, and that instance doesn't have a visible UI, how do you get rid of it? (Yes, I know the task window or process viewers are capable) It's just to prevent a thousand hidden copies of IE from running in the background. It may also have something to do with security.
Eric K.
I didn't think about a .quit. Any insights into why .visible=0 removes all instances from memory? If you do an Ctrl-Alt-Del it's auto-magically gone! Though maybe not forgotten :-)
Marcus
ie.quit
Regards,
Ian
Senior Consultant | MSDN Regional Director
ADV E-Commerce | Windows Script FAQ
Advantage Group | http://www.windows-script.com
Hi,
I want to have the IE window closed after the script is finished.
Nor the "Set IE = Nothing" nor the "WScript.Quit" would do it.
Set IE = CreateObject("InternetExplorer.Application")
For LoopCtr = 0 to x
IE.navigate "http://MyServer.Lambda.be"
IE.visible=1
Some stuff here
Next
Set IE = Nothing
WScript.Quit