Aaron
Aaron

Reputation: 21

Bat. file that open multiple url windows with firefox

How to write bat file that open more than one URL in new windows in firefox? In chrome -new-window command works but what is the command in firefox?

Upvotes: 1

Views: 7651

Answers (2)

Hackoo
Hackoo

Reputation: 18857

Give a try for this sample :

@echo off
Set URL="www.google.com www.stackoverflow.com www.yahoo.com www.facebook.com www.twitter.com"
set NewTab=-new-tab
set NewWindow=-new-window
For %%a in (%URL%) Do (Start /d "%programfiles%\Mozilla Firefox" Firefox.exe %Newtab% "%%a")
For %%b in (%URL%) Do (Start /d "%programfiles%\Mozilla Firefox" Firefox.exe %NewWindow% "%%b")

Upvotes: 3

Andrey Derevyanko
Andrey Derevyanko

Reputation: 560

As I know you can just list multiple URLs, separated by spaces. Firefox will open them as tabs in a new window.

Upvotes: 1

Related Questions