Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

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 VBSOption 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 .BATHope that helps.
******************************************
MSN = HardstyleMatt@hotmail.co.uk
Need help? Just ask. :)
******************************************

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.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |