Script to automate URL opening in multiple tabs in Firefox or Opera from a text file

后端 未结 4 1797
旧巷少年郎
旧巷少年郎 2021-01-07 13:59

I have a text file with lots of links-each line has a link (i.e the separator is \'\\n\'). i want to write a script so that each link opens in a different tab in Firefox or

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-07 14:39

    If anyone is looking for how to do this in Chrome, here is the solution :

    @echo off
    
    set URL1= https://www.google.com
    set URL2= https://www.youtube.com
    set URL3= https://stackoverflow.com
    
    start chrome --new-window "%URL1%" "%URL2%" "%URL3%"
    

    Save this code as batch file and just double click.

    Note that there is no space before the = sign It wasn't working for me when i tried with space

提交回复
热议问题