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 Internet explorer. How can I do this? I'm on Windows 7
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