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

后端 未结 4 1918
旧巷少年郎
旧巷少年郎 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:38

    Create a text file called whatever.bat and put it on your desktop. edit the file and enter:

    set "fileList="
    FOR /F "usebackq delims==" %%i IN ("C:\Documents and Settings\mdevine\Desktop\urls.txt") DO call set "fileList=%%fileList%% %%i"
    start firefox %fileList%
    

    close and save

    double click on it

    Note: C:\Documents and Settings\mdevine\Desktop\urls.txt is a text file that contains the following:

    http://www.rte.ie
    http://www.python.org
    http://www.bbc.co.uk
    http://www.google.com
    

提交回复
热议问题