Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Open 3 tabs in IE window with .cmd file

30 Sep 2014   #1
erezyafee

Windows 7 Enterprise 64bit
 
 
Open 3 tabs in IE window with .cmd file

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"



My System SpecsSystem Spec
.
30 Sep 2014   #2
Tookeri

Windows 7 Pro 32
 
 

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 System SpecsSystem Spec
30 Sep 2014   #3
erezyafee

Windows 7 Enterprise 64bit
 
 

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 System SpecsSystem Spec
.

30 Sep 2014   #4
Tookeri

Windows 7 Pro 32
 
 

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 System SpecsSystem Spec
30 Sep 2014   #5
Ztruker

Windows 10 Pro X64
 
 

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 System SpecsSystem Spec
01 Oct 2014   #6
erezyafee

Windows 7 Enterprise 64bit
 
 

Thanks alot Tookeri!!! works very well!
Ztruker- we talked about opening one window with 3 tabs. not 3 windows
My System SpecsSystem Spec
01 Oct 2014   #7
Ztruker

Windows 10 Pro X64
 
 

Sorry, this line in your original post threw me:
Quote:
doesnt matter if they will open in a new IE window or existing IE window.
I understand now.
My System SpecsSystem Spec
Reply

 Open 3 tabs in IE window with .cmd file




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
File Explorer Windows Automatically Open in New Window?
I am noticing that when I click to open a folder in the File Explorer, the folder automatically opens in a new window. Then if I click on another folder or file, that automatically opens in a new window as well and so on. It is annoying to have to keep closing windows. I cannot locate how...
Customization
Open in new window, not tabs
Everywhere I look people are moaning that links open in windows not tabs but I've the opposite problem. I enter competitions from a specialist portal which lists them. I want to open several of the links in separate windows at a time but they are coming up in tabs. I've found the tabbed browsing...
Browsers & Mail
clicking file then open is not opening a window to select files
im having a problem when trying to open files. for example adobe reader. file, open, then a window should appearf or me to select a file to open. but its not. also when i open control panel and click on uninstall a program no window appears. is it possibly a settiing that needs to be changed or...
General Discussion
my 'documents' file list: open as larger window?
hi When opening my 'documents' file list the window needs to be resized--i.e., made larger--to read properly. Q: is there a way to resize it and then open larger from then on as the new default size? thank you Dean
General Discussion
Multiple Tabs in FireFox Creates Multiple Window Tabs
Ok so here's my problem: In any program with tabs (FireFox, VMWare Workstation, etc.) the window appears as multiple windows in the taskbar. This is a problem for me because I usually have multiple windows open each with a few tabs. So when I hover over the program on the taskbar I can't tell the...
Browsers & Mail
Window can't open any exe file
So I downloaded a firmware for my Canon. I was suppose to drag it to desktop. It was a exe file, then I choose to open it with winrar. This action messed up my whole computer. Every exe file has a little icon of winrar and can't open and said corrupted. Some will open but then ask what program...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:07.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App