Open 3 tabs in IE window with .cmd file

erezyafee

New member
Local time
12:00 AM
Messages
3
I tried to accomplished that, but it works only in chrome (my default browser) and i want it to work in IE.
My goal is to open 3 tabs in IE. doesnt matter if they will open in a new IE window or existing IE window.
This is my .cmd file:

Code:
START /d iexplore.exe "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http://marathon:7040/console/jsp/login/j_security_check?j_username=weblogic&j_password=weblogic"
START /d iexplore.exe "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http://sparta:7040/console/jsp/login/j_security_check?j_username=weblogic&j_password=weblogic"
START /d iexplore.exe "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http://wlsprod:7040/console/jsp/login/j_security_check?j_username=weblogic&j_password=weblogic"
 
Last edited:

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 Enterprise 64bit
Hi and welcome to SevenForums!

Add a /D after START, ex: START /D ""

And add a short pause between each START command so the previous opened IE window has opened fully. Example:
CHOICE /C:AB /D A /T 1 > NUL

This will pause for 1 second without displaying anything. If that's not enough try and increase that value.
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Elitebook 8540p
OS
Windows 7 Pro 32
CPU
Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
Motherboard
Hewlett-Packard 1521
Memory
4,00 GB (Usable 2,98)
Graphics Card(s)
NVIDIA NVS 5100M
Sound Card
NVIDIA High Definition Audio
Screen Resolution
1600x900
Hard Drives
INTEL SSDSA2CW120G3
Antivirus
F-Secure Internet Security
Browser
IE, Firefox, Opera
Other Info
Sandboxie,
SRP (Software Restriction Policy),
EMET (Enhanced Mitigation Experience Toolkit),
WFC (Windows Firewall Control by BiniSoft),
Malwarebytes Premium
I now noticed that i didnt copy the right code so i edited my question. take a look on the code
that code does excactly what i want, but because my default browser is chrome- it opens in crome.
all i want is to open it through IE without change my default browser
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 Enterprise 64bit
I changed my default browser so now I get the same problem as you have. I can't get this to work when IE is not my default browser, but I found another solution using VB script:

Code:
Const navOpenInBackgroundTab = &H1000

site1 = "google.com"
site2 = "bing.com"
site3 = "ddg.gg"

Set oIE = CreateObject("InternetExplorer.Application")
oIE.Visible = True
oIE.Navigate2 site1
oIE.Navigate2 site2,navOpenInBackgroundTab
oIE.Navigate2 site3,navOpenInBackgroundTab

Set oIE = Nothing
Save the above to a text file and name it .vbs instead of .txt. Change the values for variable site1, site2, site3.
If you want to call it from a .cmd file, use this example:

cscript /nologo "c:\path\filename.vbs"
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Elitebook 8540p
OS
Windows 7 Pro 32
CPU
Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
Motherboard
Hewlett-Packard 1521
Memory
4,00 GB (Usable 2,98)
Graphics Card(s)
NVIDIA NVS 5100M
Sound Card
NVIDIA High Definition Audio
Screen Resolution
1600x900
Hard Drives
INTEL SSDSA2CW120G3
Antivirus
F-Secure Internet Security
Browser
IE, Firefox, Opera
Other Info
Sandboxie,
SRP (Software Restriction Policy),
EMET (Enhanced Mitigation Experience Toolkit),
WFC (Windows Firewall Control by BiniSoft),
Malwarebytes Premium
I tried a test. My default browser is Seamonkey (Mozilla spinoff).

I entered a single line:

START iexplore.exe "http://www.google.com"&START iexplore.exe "http://www.google.com"&START iexplore.exe "http://www.google.com"

This opened 3 Internet Explorer windows for Google.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Thanks alot Tookeri!!! works very well!
Ztruker- we talked about opening one window with 3 tabs. not 3 windows :)
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 Enterprise 64bit
Sorry, this line in your original post threw me:
doesnt matter if they will open in a new IE window or existing IE window.
I understand now.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top