Opening multiple URLs in new tabs using batch file


  1. Posts : 139
    Windows 7 Home Premium 64bit
       #1

    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 by ruste84; 27 Feb 2013 at 16:23. Reason: Original title did not state that I needed assistance.
      My Computer


  2. Posts : 139
    Windows 7 Home Premium 64bit
    Thread Starter
       #2

    I solved this myself using javascript.
      My Computer


  3. Posts : 1
    windows XP
       #3

    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


 

  Related Discussions
Our Sites
Site Links
About 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 18:28.
Find Us