WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE with MSIE
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Launch IE with Several Tabs

 Keywords: MSIE IE Internet Explorer tab tabs open launch run commandline 

Question:

Has anyone figured out how to open multiple URLs in Tabs in Internet Explore 7 or 8, in a Winbatch script? I've looked for command line switches but there doesn't seem to be any.

Answer:

Apparently IE does not support specifying multiple URLs on the command line, but another way to do this is to use IE Automation to launch IE as an COM server and then call methods such as IWebBrowser2::Navigate2.

http://msdn.microsoft.com/en-us/library/aa752094(VS.85).aspx

; How to launch IE with several tabs.
navOpenInBackgroundTab = 4096
oIE = ObjectCreate("InternetExplorer.Application")
oIE.Visible = @TRUE
oIE.Navigate2("http://www.winbatch.com")
oIE.Navigate2("http://forum.winbatch.com", navOpenInBackgroundTab)
oIE.Navigate2("http://techsupt.winbatch.com", navOpenInBackgroundTab)
oIE = 0
Exit


Article ID:   W18129
Filename:   How to Launch IE with Several Tabs.txt
File Created: 2013:06:19:13:44:14
Last Updated: 2013:06:19:13:44:14