Solved Opening multiple URLs in new tabs using batch file

ruste84

New member
Member
VIP
Local time
11:36 AM
Messages
73
Location
Indiana
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 1.1.1.1 -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.
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 7 Home Premium 64bit
CPU
AMD Phenom II X3 740
Motherboard
ASUS Crosshair IV Formula
Memory
Mushkin Enhanced Silverline
Graphics Card(s)
ASUS CuCore Series EAH5770 CuCore/2DI/1GD5
Sound Card
SupremeFX X-Fi 8-Ch audio with EAX Advanced HD 4.0 support
Hard Drives
Western Digital WD Black WD6402AAEX 640GB 7200 RPM SATA 6.0Gb/s 3.5"
PSU
Antec EarthWatts EA750 750W
Case
Antec Nine Hundred Two Black Steel ATX Mid Tower
Cooling
Scythe YASYA SCYS-1000 120mm
Mouse
Old as dirt Logitech, but its still kickin'
Antivirus
Microsoft Security Essentials and Malware Bytes
Browser
Google Chrome, IE10, and Firefox
I solved this myself using javascript.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 7 Home Premium 64bit
CPU
AMD Phenom II X3 740
Motherboard
ASUS Crosshair IV Formula
Memory
Mushkin Enhanced Silverline
Graphics Card(s)
ASUS CuCore Series EAH5770 CuCore/2DI/1GD5
Sound Card
SupremeFX X-Fi 8-Ch audio with EAX Advanced HD 4.0 support
Hard Drives
Western Digital WD Black WD6402AAEX 640GB 7200 RPM SATA 6.0Gb/s 3.5"
PSU
Antec EarthWatts EA750 750W
Case
Antec Nine Hundred Two Black Steel ATX Mid Tower
Cooling
Scythe YASYA SCYS-1000 120mm
Mouse
Old as dirt Logitech, but its still kickin'
Antivirus
Microsoft Security Essentials and Malware Bytes
Browser
Google Chrome, IE10, and Firefox
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
http://tinyurl.com/ozpqy4m
ClickFair.Com - Cheap Advertising | Complete Online Tasks & Get Paid
Clicksia - Get Paid to Complete Tasks
EasyCloud - Easy PHP Cloud Hosting » Pages » Site Suspended
GPTPlanet
http://tinyurl.com/od2o6lu
Incentria - Paid To Click Ads
MyAdsClick.com
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
PTCRS.com

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 :
myurls.txt
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
hp
OS
windows XP
Back
Top