Launch IE to follow link from URL

Gateway Mx6440 notebook
October 30, 2009 at 16:17:43
Specs: Microsoft Windows XP Professional, 1.79 GHz / 958 MB
I need help creating a batch file that will launch IE to a specific URL and then follow a link from that URL to another.

When I try to simply go to the second URL I get an error message. It seems that I have to be specifically directed from the first URL to get to the second. Not sure if my terminology is correct, hopefully this is easy enough to understand.

@echo off
start iexplore ""

From that URL, I need to access a link to check email, which directs me to "http://XX.XXX.XX.XXX/mailmaxweb/mmweb.dll?default" but if I just try to access that URL directly I get an error message that the web page can not be found.

I have used quotes around the URL's to prevent them from being displayed as links in this post.

See More: Launch IE to follow link from URL

Report •

November 2, 2009 at 03:50:23
Hello wrs
I can help you get what you want. But i'm afraid it's not a Batch file.
I tried doing it in a batch file but failed.
But it is possible with VBS

Option Explicit
Dim objIEA
Set objIEA = CreateObject("InternetExplorer.Application")
objIEA.Navigate ""
WScript.sleep 5000
objIEA.Navigate ""
objIEA.visible = true

The 2 URL's replace them with your own. Google as the first URL, Youtube as the 2nd..

Sleep 5000
That wait's 5 seconds. You can make this 20000 if you like depending on how quick you would like it to redirect.

Just incase you haven't worked with a VB Script before.
Put it into notepad just like a batch. But when you save it save as "Filename.VBS"
Not .BAT

Hope that helps.

Need help? Just ask. :)

Report •

November 3, 2009 at 10:03:26
Thanks for that, it accomplishes getting to the first URL but can not accomplish getting to the second URL. To be clear, the script works, and if I substitute a different URL (like it does work.

Report •

November 3, 2009 at 11:12:57
There's something else going on here, but I'm not sure what.

Report •

Related Solutions

November 3, 2009 at 16:46:14
I think that the second URL can only be accessed by clicking the link from the first one?

Report •

Ask Question