fredmartinmaine
IS-IT--Management
In vbscript, I've opened a web doc for the user to have as a reference, like this:
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate "C:\webpage.mht"
It pops right up and my script continues on, prompting user to verify some stuff from the page. Beautiful.
When I'm done, how do I close the page and make it go away?
I've tried stuff like objIE.quit, objIE.close, and even this:
set objIE = nothing
I thought that would kill it, but no. Mr. Google has stuff about searching for the right open IE doc and killing it, as if I wasn't the one that opened it in the first place but that seems like a crazy amount of work since I made the instance.
Missing something here, I'm sure.
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate "C:\webpage.mht"
It pops right up and my script continues on, prompting user to verify some stuff from the page. Beautiful.
When I'm done, how do I close the page and make it go away?
I've tried stuff like objIE.quit, objIE.close, and even this:
set objIE = nothing
I thought that would kill it, but no. Mr. Google has stuff about searching for the right open IE doc and killing it, as if I wasn't the one that opened it in the first place but that seems like a crazy amount of work since I made the instance.
Missing something here, I'm sure.