Re: Launch hta file from within vbscript by mr_unreliable
mr_unreliable
Tue Jun 13 17:23:23 CDT 2006
Pete,
Take a look at the wshShell.Exec method.
That will start an app (say an hta) and return a
"wshScriptExec Object".
That object will allow you to keep track of the status
of the running object.
There is also a "terminate" method of the wshShellExec
object.
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
Pete Gomersall wrote:
> Hi all,
> Is there any way to load and control a hta file from within VBScript like
> can be done for html?
> This works for IE
> Set objIE = CreateObject("InternetExplorer.Application")
> objIE.navigate "file://c:\test.html"
> objIE.left=200
> objIE.top=200
> objIE.height=225
> objIE.width=440
> objIE.menubar=0
> objIE.toolbar=0
> objIE.addressbar=0
> objIE.statusbar=0
> objIE.visible=1
> etc, etc
> What to do with *.hta so can load "do some work" then close the object?
> Any help warmly appreciated,
> Pete Gomersall
>
>