最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - batch file to open multiple URLs - Stack Overflow

programmeradmin1浏览0评论

I want to multiple URLs in internet explorer in the same window, but new tabs.

I have a list of about 6 URLs that I use daily, and I want to create a single batch file to open them all.

Also, if there is a way to do this using JS that would be great.

I want to multiple URLs in internet explorer in the same window, but new tabs.

I have a list of about 6 URLs that I use daily, and I want to create a single batch file to open them all.

Also, if there is a way to do this using JS that would be great.

Share Improve this question asked Apr 4, 2011 at 5:59 sikassikas 5,53328 gold badges78 silver badges123 bronze badges 3
  • 2 So what have you written so far? What is the problem with your code? Can you post use the batch file you have written, that does not work, so we can see what the problem is and help you correct it? – mdm Commented Apr 4, 2011 at 6:07
  • I've seen (and answered) this exact question before, I think. – Joey Commented Apr 4, 2011 at 6:29
  • 1 Related (or duplicate): Windows console mand to open multiple pages in Internet Explorer 7, How to launch multiple Internet Explorer windows/tabs from batch file?, Script to automate URL opening in multiple tabs in Firefox or Opera from a text file. – Helen Commented Apr 4, 2011 at 8:52
Add a ment  | 

2 Answers 2

Reset to default 2

Pretty simple:

start "" "http://bing."
start "" "http://stackoverflow./questions/5535049/batch-file-to-open-multiple-urls"
...

I had a similar problem and came up with the following code. I wanted to obtain basic movie information for use in creating a DVD case outer jacket. I wanted to review rottentomatoes and imdb ratings as well as google movie images. That would be 3 urls using tabs in explorer launched from the win7 mand line. The batch file would be run using, for example

showmovieinfo The Hunger Games

@ECHO OFF
REM BRING UP REFERENCE MATERIAL FOR THE SUPPLIED MOVIE TITLE
IF "%1"=="" GOTO Done
SET showmovieinfo=%1
:Test
SHIFT
IF "%1"=="" GOTO Done
SET showmovieinfo=%showmovieinfo%+
FOR %%F IN (%1) DO SET showmovieinfo=%showmovieinfo%%%F
GOTO Test
:Done
SET E1=start /d explorer.exe http://www.rottentomatoes./search/?search=%showmovieinfo%
SET E2=start /d explorer.exe http://www.imdb./find?q=%showmovieinfo%
SET E3=start /d explorer.exe http://www.google./search?num=10"&"hl=en"&"q=FILM+%showmovieinfo%"&"um=1"&"ie=UTF-8"&"tbm=isch
%E1%
%E2%
%E3%
发布评论

评论列表(0)

  1. 暂无评论