
sending paging data using iexplorer and closing iexplorer when done
I am running a WSH script that maps and checks various directory locations
for infected files. I was using the following command to start Iexplore:
iret =ws.run("Iexplore web.page.com?pageing.txt",1,true)
with your help I changed it to:
set oIE = CreateObject("InternetExplorer.Application")
With oIE
.FullScreen = False
.ToolBar = True
.RegisterAsDropTarget = False
.Navigate(page&m&" => "&vr)
While .Busy
WScript.Sleep 100
Wend
.visible = False
wscript.sleep 2000
oie.quit
and this resolved my problem. Again I thank everyone.
Jesse
Quote:
> Done externally with internetexplorer.application, use the quit method:
example:
> ie = createobject("internetexplorer.application")
> yadd-yadda with ie...
> ie.quit
Quote:
> : ixna, I was thinking client side browser scripting. If you have access
to
> : the page you could add that to the source and it would close the window.
> :
> : How are you opening the browser? If you're opening the file by creating
an
> : IE object, you should be able to use the .Close method... but I could be
> : wrong. I look.
> :
> : -K
> :
> : > Try:
> : > <SCRIPT LANGUAGE="VBScript">
> : > Window.Close
> : > </SCRIPT>
> : > > I'm writting a script to check for viruses on my network and page me
> : > > using web-based paging. My problem is I open iexplorer and send the
> : > > page, but iexplorer doesn't close. How do I close IE immediately
> : > > afterwards.
> : > >
> : > > thanks in advance,
> : > >
> : > > Jesse Mosley
> : >
> : >
> :
> :