在Firefox或Opera中的多个标签中自动打开URL的脚本 [英] Script to automate URL opening in multiple tabs in Firefox or Opera from a text file

查看:286
本文介绍了在Firefox或Opera中的多个标签中自动打开URL的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个链接很多的文本文件,每一行都有一个链接(即分隔符是\ n)。我想编写一个脚本,以便每个链接在Firefox或Internet Explorer的不同标签中打开。我怎样才能做到这一点?我在Windows 7上创建一个名为whatever.bat的文本文件,并将其放在桌面上。编辑文件并输入:

  setfileList =
FOR / Fusebackq delims ==%%我在(C:\ Documents and Settings\mdevine\Desktop\urls.txt)DO调用设置fileList = %% fileList %% %%我
启动firefox%fileList%

关闭并保存



/ p>

注意:C:\Documents and Settings\mdevine\Desktop\urls.txt是一个包含以下内容的文本文件:

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


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

这篇关于在Firefox或Opera中的多个标签中自动打开URL的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆