Calling URL from .bat file

J

JFK

I have a batch file that modifies a registry setting, then
calls a URL. This works but the IE Window for the URL is
in the background. Does anyone know how I can get this to
pop up as a new window in the foreground?
Thanks,
JFK
 
J

John Phillips

AFAIK, you can't do this from a plain batch file - WSH maybe. A proper
application, definately.

Try the "-new" command-line parameter ([1] and [2]). I can't duplicate your
problem (running IE from a batch file on my system pops the window to the
front), so I can't say how well this might work for you.

[1]: http://support.microsoft.com/default.aspx?scid=KB;en-us;q178058
[2]:
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechn
ol/ie/reskit/ie6/part7/z03ie6rk.asp (very bottom of page)
 
J

JFK

Thanks for trying John
The -new parameter does the same thing.
I am not actually activitating IE, I am just referencing a
file with a .URL extension and it starts up IE through an
association.
JFK
-----Original Message-----
AFAIK, you can't do this from a plain batch file - WSH maybe. A proper
application, definately.

Try the "-new" command-line parameter ([1] and [2]). I can't duplicate your
problem (running IE from a batch file on my system pops the window to the
front), so I can't say how well this might work for you.

[1]: http://support.microsoft.com/default.aspx?scid=KB;en- us;q178058
url=/technet/prodtechn
ol/ie/reskit/ie6/part7/z03ie6rk.asp (very bottom of page)


--
John Phillips
MVP - Windows SDK


I have a batch file that modifies a registry setting, then
calls a URL. This works but the IE Window for the URL is
in the background. Does anyone know how I can get this to
pop up as a new window in the foreground?
Thanks,
JFK


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top