Create Batch file for multiple sites to start

DonnaB

Malware Fighter
Member
Hi,

I'm trying to create a batch file so that I can bring up 2 sites at one time when I open my browser. I use Firefox & IE8.
What I have done so far to no avail is created a file as follows and sent to desktop from notepad named test.bat:

@echo off
start "(web site)" "www.(site).com"
start "(web site)" "www.(site).com

without parenthesis in the above. I can get these to open consecutively, same browser window if I have a browser already open. But, not without browser open. How do I connect the 2 sites to open in 2 tabs, same window?

I also added them as multi home pages, then sent shortcut to browser to desktop. This does work, but, not what I want.

Is there anyway to create a batch file and have these 2 sites open at start up, by-passing the desktop without clicking to open the browser? :sarc:

Also, I know that clicking on the shortcut to the browser that's on the desktop does slow down the launching process. If there is another way upon start up, will it be slower as well?

Thanks,
bbbluz
 
Last edited:

My Computer

start /d "C:\Program Files\Internet Explorer" IEXPLORE.EXE www.(site).com
start /d "C:\Program Files\Internet Explorer" IEXPLORE.EXE www.(site).com

Mozilla Firefox always opens two links in two different windows from a command line. There's no way around that. Sorry.
 

My Computer

System One

  • Manufacturer/Model
    Hewlett-Packard dv6936us
    CPU
    Intel Core 2 Duo "Merom" T5750, 2 GHz, stock clocking
    Motherboard
    stock Quanta 30D2, v.792E
    Memory
    4 GHz, 667 MHz bus speed
    Graphics Card(s)
    NVIDIA GeForce 8400M GS, stock
    Sound Card
    stock Realtek software-based
    Monitor(s) Displays
    stock 15.4" widescreen
    Screen Resolution
    stock 1280 X 800
    Hard Drives
    stock Toshiba MK2546GSX and a Western Digital 1TB MyBook
    PSU
    stock
    Case
    stock
    Cooling
    stock plus Rocketfish model RF-LAPCOL
    Keyboard
    stock
    Mouse
    stock Synaptics Pointing Device
    Internet Speed
    Ludicrous Speed (~10.9 Mbps, more or less)
    Other Info
    Browser: Namoroka v1.9.2.3666 64-bit build. Computer specs:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01485288&tmp_task=prodinfoCategory&lc=en&dlc=en&cc=us&product=3747246
    I like chocolate milk!
Here is how to do it in Firefox without a batch file:
Set them as home pages and have Firefox open your home pages at start up.
To do that do this:
Open up the sites.
Open the main page of the options dialog - in the menus select Tools > Options > Main
In the start up section click "Use Current Pages"
Also in the start up section for the option "When Firefox starts" select "Show my home page"
 

My Computer

System One

  • Manufacturer/Model
    Asus G50VT-X1
    CPU
    Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz 2.27 6Hz
    Memory
    4.00 GB
    Graphics Card(s)
    NVIDIA GeForce 9800M GT 512 MB
There is no need to create a batch file to do what Firefox can do automatically for you. Firefox can open as many tabs as you like when you start it. To set it up to open two pages (like you asked), do the following in Firefox 3.6.

First... Open both pages in tabs that you want to open next time you open Firefox. Then...

1. Click Tools
2. Click Options
3. Click General
4. Click "Open Current Pages"

That's all there is to it.

Hi,

I'm trying to create a batch file so that I can bring up 2 sites at one time when I open my browser. I use Firefox & IE8.
What I have done so far to no avail is created a file as follows and sent to desktop from notepad named test.bat:

@echo off
start "(web site)" "www.(site).com"
start "(web site)" "www.(site).com

without parenthesis in the above. I can get these to open consecutively, same browser window if I have a browser already open. But, not without browser open. How do I connect the 2 sites to open in 2 tabs, same window?

I also added them as multi home pages, then sent shortcut to browser to desktop. This does work, but, not what I want.

Is there anyway to create a batch file and have these 2 sites open at start up, by-passing the desktop without clicking to open the browser? :sarc:

Also, I know that clicking on the shortcut to the browser that's on the desktop does slow down the launching process. If there is another way upon start up, will it be slower as well?

Thanks,
bbbluz
 

My Computer

System One

  • Manufacturer/Model
    HP Pavilion Desktop
    CPU
    Intel E2220 Dual 2.40 ghz 2400 mhz 2 core
    Memory
    4gb Ram, 3.87gb physical memory, 7.95gb virtual meory
    Graphics Card(s)
    Nvidea
    Internet Speed
    DSL 1.5
Thanks for the replies!

I did have FF & IE set to open more than 1 homepage upon launching. I didn't explain myself to the fullest. I wanted it to start and be updateable. (does that sound right?)
Anyway, a friend of mine created this for me >


@ECHO OFF
Start "http://www.(site)]"
ping -n 7 127.0.0.1 >NUL
start "http://(site)update.htm"

(think I typed that right?!)

But, I had to burn it to CD, & install.

It works!

Again! Thanks for your help:D
 

My Computer

I have been using the attached .bat file for about 2yrs:party:

download and right click and choose edit then just change the site you want to use like I highlighted in the pic attached ( copy the whole URL )
 

Attachments

  • 5.bat
    780 bytes · Views: 573
  • Capture.JPG
    Capture.JPG
    91.2 KB · Views: 1,734

My Computer

System One

  • Manufacturer/Model
    gateway/m6881
    CPU
    centrino core 2 duo 2.2ghz T7500
    Memory
    3GB
    Hard Drives
    500GB WD
    Mouse
    logitech
    Internet Speed
    fios 35MB not!!!!
forget my prior post, I had to re read your question again...sorry

mine will open 14 pages:o
 

My Computer

System One

  • Manufacturer/Model
    gateway/m6881
    CPU
    centrino core 2 duo 2.2ghz T7500
    Memory
    3GB
    Hard Drives
    500GB WD
    Mouse
    logitech
    Internet Speed
    fios 35MB not!!!!
This .cmd batch will do it for a few sites listed on the command line. Note they should be simple sites (no quotation marks - quotes here to keep the forum from fetching titles)
BrowseAll "www.vistax64.com" "www.sevenforums.com" "www.eightforums.com"

The first site is launched with default browser and the batch waits
5 seconds then the rest of the sites are opened with 1 second pause
in between. With most browsers this should result in a site in each tab.


Code:
@echo off
REM BrowseAll.cmd
if "%1"=="" goto nosites
start %1
timeout /T 5 /nobreak > nul
:loop
shift
if "%1"=="" goto end
start %1
timeout /T 1 /nobreak > nul
goto loop
:nosites
echo No Sites Specified on Command Line
:end

You can get a lot more control if you use something like AutoIt3
or VBScript. AutoIt3 has easy syntax and can use objects like
Scripting.Dictionary for associative arrays Application object for
file and process stuff etc..

Batch is kind of clunky.
 
Last edited:

My Computer

System One

  • Manufacturer/Model
    HP Pavilion m9515y
    CPU
    Phenom X4 9850
    Memory
    8 GB
    Graphics Card(s)
    Some Radeon Cheapie with 512 MB Ram
    Monitor(s) Displays
    CRT
    Screen Resolution
    1280x1024
    Hard Drives
    750 GB SATA 3G
    2 SIIG Superspeed docks w/WD Caviar Black Sata II or III
Back
Top