Bat. file that open multiple url windows with firefox

后端 未结 2 1587
离开以前
离开以前 2021-01-26 19:27

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?

2条回答
  •  旧时难觅i
    2021-01-26 19:49

    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")
    

提交回复
热议问题