Computing.Net > Forums > Programming > Launch IE to follow link from URL

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Launch IE to follow link from URL

Reply to Message Icon

Name: wrswldo
Date: October 30, 2009 at 16:17:43 Pacific
OS: Microsoft Windows XP Professional
CPU/Ram: 1.79 GHz / 958 MB
Product: Gateway Mx6440 notebook
Subcategory: Batch
Comment:

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 "http://mycompany.com"

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Matt (by Mattio)
Date: November 2, 2009 at 03:50:23 Pacific
Reply:

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 "http://www.google.com"
WScript.sleep 5000
objIEA.Navigate "http://www.youtube.com"
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.

******************************************
MSN = HardstyleMatt@hotmail.co.uk
Need help? Just ask. :)
******************************************


0

Response Number 2
Name: wrswldo
Date: November 3, 2009 at 10:03:26 Pacific
Reply:

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 www.google.com) it does work.


0

Response Number 3
Name: Razor2.3
Date: November 3, 2009 at 11:12:57 Pacific
Reply:

There's something else going on here, but I'm not sure what.


0

Response Number 4
Name: wrswldo
Date: November 3, 2009 at 16:46:14 Pacific
Reply:

I think that the second URL can only be accessed by clicking the link from the first one?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Launch IE to follow link from URL

How to launch IE/web app from VB6? www.computing.net/answers/programming/how-to-launch-ieweb-app-from-vb6/9836.html

Javascripts to redirect linked url www.computing.net/answers/programming/javascripts-to-redirect-linked-url/6389.html

how to get image link from database www.computing.net/answers/programming/how-to-get-image-link-from-database/1363.html