Re: Open a New Browser Window with VBScript

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Gary" <Gary@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D7446A79-79BE-4636-A6B3-E0594CB68C95@xxxxxxxxxxxxxxxx


"Pegasus (MVP)" wrote:


"Gary" <Gary@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9A591C49-5EFE-4A07-9BBE-A914FC946926@xxxxxxxxxxxxxxxx
OK, I would think this would be easy but somewhere I'm missing
something.
I
have an HTML form and I want to open a new browser window. When I
click a
button I call some VBScript and inside that VBScript I want to open a
new
browser window. I thought that using window.open would work but I
can't
seem
tot get it to. Is there some magic I need to open a new window using
VBScript?

Thanks

Gary

Dim ws
Set ws = CreateObject("WScript.Shell")
ws.Exec("c:\Program Files\Internet Explorer\iexplore.exe")

I am wanting to open an asp page in a new browers window. How would I do
that with this method?

Gary


I don't have an asp page to test it on but this should work:
Dim ws
Set ws = CreateObject("WScript.Shell")
ws.Exec("c:\Program Files\Internet Explorer\iexplore.exe http://www...asp";)


.


Quantcast