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: Opening multiple URLs in new tabs using batch file

27 Feb 2013   #1

Windows 7 Home Premium 64bit
Help with batch file to open multiple URLs in new tabs

Well my forum friends, I'm messing around with batch files again. So, I've created a batch file to open various programs, of which are multiple webpages using IE8. . Here's what I have so far specifically for the Internet:

rem Internet
cd %windir%\system32
start /d "C:\Program Files\Internet Explorer" IEXPLORE.EXE siteA
PING -n 1 -w 2000 >NUL
start /d "C:\Program Files\Internet Explorer" IEXPLORE.EXE siteB

The URLs have been replaced by siteA and siteB. I put the ping line in the file to slow down the process which, in my mind, would allow time for each page to open (not sure if it's really needed though). While, I know that I can just launch the first URL, then open the second in a new tab, I just want to know if and how I can open the other URL in a new tab. Also, all other programs that I've put in the batch file open and run perfectly.

My System SpecsSystem Spec
28 Feb 2013   #2

Windows 7 Home Premium 64bit

I solved this myself using javascript.
My System SpecsSystem Spec
07 Oct 2013   #3

windows XP

well ,for me it's pretty easy,i have a description file (myurls.txt) where I store all URLs i'd like to open in multiple tabs; and call that file in a batch file "myscript.cmd".
for example: myurls.txt will contain:

EasyCloud - Easy PHP Cloud Hosting Pages Site Suspended
BalkanikaClix - Let's Grow Together
ClickFair.Com - Cheap Advertising | Complete Online Tasks & Get Paid
Clicksia - Get Paid to Complete Tasks
EasyCloud - Easy PHP Cloud Hosting Pages Site Suspended
Incentria - Paid To Click Ads
NeoBux: The Innovation in Paid-to-Click Services
ProBux - It's easy, It's free, It's ProBux!
EasyCloud - Easy PHP Cloud Hosting Pages Site Suspended

in "myscript.cmd" , i write: (i actually use firefox instead of IExplorer)
@echo off
set "fileList="
FOR /F "usebackq delims==" %%i IN ("
myurls.txt") DO call set "fileList=%%fileList%% %%i"
start firefox %fileList%

i can double click on the srcipt to run or use commande line , intere thename my_script.cmd and hit returnpretty easy, isn't? no need to modify my script in case i change the list of URLs, just update description file :
My System SpecsSystem Spec


 Opening multiple URLs in new tabs using batch file

Thread Tools

Similar help and support threads
Thread Forum
Opening a batch file
Need some help opening this info on this disk. Has medical info. These are the files on the disk...... Thanks, B-72
Batch file to open multiple browsers
Hello, I need 10 different browsers open and after some searching found a way to write a batch file which worked but with a couple of problems. The problem is it opens them all at once and several of the browsers crash. So I tried adding a ping after each one as follows: @echo off start /D...
Browsers & Mail
Multiple BSOD Errors After Opening Several Chrome Tabs or at startup
I don't know what I did to my laptop, but ever since last week I've been getting BSOD every once in a while while on my laptop. Today was a System Exception Error and yesterday was an error STOP 0X00001E. I did a system restore to about two weeks ago BUT it still occurs, just not with the same...
BSOD Help and Support
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
Open Multiple Files one click - simple bat/batch file
Hey, I have a simple batch file to load multiple files with one click, but it's not working. When I run it, it simply very quickly pops up the cmd dialog, which quickly disappears, and nothing is loaded. I've tried 'running as administrator' - same problem. File is xxxxx.bat
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 14:39.
Twitter Facebook