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

Re: objIE.Writeln from 2nd script by Michael

Michael
Thu Apr 29 22:03:55 CDT 2004

> ... How do I bind to
> the IE instance from a script which did not originally create the IE
> application?


Sounds like an IEPipe situation...

Google Search: iepipe group:*.scripting
http://groups.google.com/groups?q=iepipe%20group:*.scripting&num=100&scoring=d



--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US


Re: objIE.Writeln from 2nd script by Viatcheslav

Viatcheslav
Fri Apr 30 05:37:51 CDT 2004

Just pass objDoc as parameter to function in b.vbs.

//------------------------------------
Regards,
Vassiliev V. V.
http://www-sharp.com -
Scripting/HTA/.Net Framework IDE

"Marty Henderson" <MooseGuy57@msn.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:ujHpJviLEHA.3332@TK2MSFTNGP10.phx.gbl...
> 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
>
>