From VBScript/WSH I creat an IE window for outputting script status. Problem
is, my script calls other script and I want to output script status from
those scripts into the same IE window. How do I bind to the IE instance from
a script which did not originally create the IE application?
Here is the code I created to start the original IE application window in
script a.vbs...
Set objIE = CreateObject("InternetExplorer.Application")
Set objDoc = objIE.Document
objIE.Navigate "about:blank"
objIE.Visible = TRUE
objIE.RegisterAsBrowser = TRUE
Do While (objIE.Busy)
Loop
objDoc.Writeln "<html><head><title>My Project " &_
WScript.ScriptName & " Status" &_
"</title></head><body bgcolor='white'>"
objDoc.Writeln "<font face=Arial size=1>" &_
Now & " - </font>" &_
"<font face=Verdana size=2><b>" &_
WScript.ScriptFullName &_
" Script Execution Started" &_
"</font></b><br><br>"
Again, I want to bind to this IE instance from, say, b.vbs and output to the
same IE window. Can I do this?
Thanks,
Marty