Auto Navigate to web address from VBSCRIPT

I've got a script that automatically navigates to a dynamic URL based on some parameters.  Ideally, each time it runs it takes the current IE window that is open and navigates that page to the new URL.  On most machines it navigates just fine in the same window... there are a few however that continually open a new window each time which is a problem.  Any ideas of some settings that may cause this?  I've double checked INTERNET TOOLS --> TABS and the associated settings there with no luck... These are all IE7 machines with no major differences between them...

Here's the code that's executing...

Set IE = GetObject("internetexplorer.application")
IE.Visible = True
IE.Navigate2 URL

jimtxasAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Robberbaron (robr)Commented:
1/ are they different IE versions ?  Specifically IE6 vs IE7
2/ what happens if there is more than 1 IE application open ?  I dont know how the GetObject would get just the active IE application.
3/ does it work with IE7 tabs ?
0
jimtxasAuthor Commented:
1) no... IE7 only
2) always opens another window
3) no
0
Robberbaron (robr)Commented:
so the script is acting as if there is already an IE instance open.

You may need to check the tasklist on those pc's. Perhaps there is an application openning inside an IE control.  eg Acrobat can open inside IE.
0
RobSampsonCommented:
What about trying it this way:

Set objShell = CreateObject("Shell.Application")
Set objShellWindows = objShell.Windows
Set IE = objShellWindows.Item
URL = "http://www.google.com"
IE.Navigate2 URL

Regards,

Rob.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RobSampsonCommented:
Thanks for the grade.

Regards,

Rob.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.