2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Michael_Knight
0

In Internet Explorer, Open 3 tabs (or as many as you like). Go to your 3 favorite pages. Then click Tools > Internet Options > Click Use Current > Click Apply > Click OK.

Close IE and reopen it, and you will have your 3 pages starting at once.

Its possible to create a batch for IE, but it won't open 3 tabs, only 3 instances of IE.

Save as IE.bat:

START "" "C:\Program Files\Internet Explorer\iexplore.exe" http://www.daniweb.com
START "" "C:\Program Files\Internet Explorer\iexplore.exe" http://www.michaelmknight.co.uk.co.uk
START "" "C:\Program Files\Internet Explorer\iexplore.exe" http://mail.google.com
CLS
EXIT

Here's a VB script to do what you want:

Imports Microsoft.Win32
Imports System.Environment

Public Class Form1
Private startPage As String
Private oPages() As String
Private regKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Internet Explorer\Main", True)

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
startPage = regKey.GetValue("Start Page")
oPages = regKey.GetValue("Secondary Start Pages")

regKey.SetValue("Start Page", "http://mail.google.com")
regKey.SetValue("Secondary Start Pages", New String() {"http://www.daniweb.com", "http://www.michaelmknight.co.uk"}, RegistryValueKind.MultiString)
Process.Start("iexplore")
End Sub

Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
regKey.SetValue("Start Page", startPage)
If oPages Is Nothing Then
regKey.DeleteValue("Secondary Start Pages")
Else
regKey.SetValue("Secondary Start Pages", oPages, RegistryValueKind.MultiString)
End If
End Sub
End Class

You can also also enter this direct to the Registry (this does the same as the first solution):

For primary homepage:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Start Page

For secondary multistart pages:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Secondary Start Pages

Use a new line as a separator.

Also, you must have open all pages set in the registry: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TabbedBrowsing\OpenAllHomePages

Hope this helps.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.