Solved

open multiple websites using doc sript

Posted on 2010-09-20
5
673 Views
Last Modified: 2012-08-14
Hi,

I'm trying to open multiple websites using DOS command script like below. The problem is that all the websites were opening in multiple windows of internet explorer but as i'm using internet explorer 8, i want to open all those websites  in multiple tabs within same window.

 Please let me know whether it is possible to do or any best way to do it


@start "" /b "C:\Program Files\Internet Explorer\iexplore.exe" http://shjdocweb1:8080/da
@start "" /b "C:\Program Files\Internet Explorer\iexplore.exe" http://shjdocweb2:8080/webto
@start "" /b "C:\Program Files\Internet Explorer\iexplore.exe" http://shjdocweb3:8080/da
@start "" /b "C:\Program Files\Internet Explorer\iexplore.exe" http://dmt003aaashjuae:8080/da
@start "" /b "C:\Program Files\Internet Explorer\iexplore.exe" http://10.100.169.33:8080/webtop

Open in new window

0
Comment
Question by:sukumarr
  • 4
5 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 33714447
here's in vbscript:navOpenInBackgroundTab = &h1000set oIE = CreateObject("InternetExplorer.Application")oIE.Navigate2 "http://shjdocweb1:8080/da"oIE.Navigate2 "http://shjdocweb2:8080/webto",navOpenInBackgroundTaboIE.Navigate2 "http://shjdocweb3:8080/da",navOpenInBackgroundTaboIE.Navigate2 "http://10.100.169.33:8080/webtop",navOpenInBackgroundTaboIE.Navigate2 "http://dmt003aaashjuae:8080/da",navOpenInBackgroundTaboIE.Visible = truetaken from http://www.vistaheads.com/forums/microsoft-public-internetexplorer-general/438407-command-line-open-several-websites-multiple-tabs.html
0
 
LVL 42

Accepted Solution

by:
sedgwick earned 250 total points
ID: 33714457
here's how to do it in batch script:@echo offstart iexplore http://shjdocweb1:8080/daping localhost -n 2 > nulstart http://shjdocweb2:8080/webtoping localhost -n 2 > nulstart http://shjdocweb3:8080/daping localhost -n 2 > nulstart http://10.100.169.33:8080/webtopping localhost -n 2 > nulstart http://dmt003aaashjuae:8080/dataken from http://www.computerhope.com/forum/index.php?topic=61776.0
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 33714464
FYI, to make the batch script works you must set IE as default browser, otherwise the first url will be open by IE and the rest of them by your default browser
0
 

Author Closing Comment

by:sukumarr
ID: 33714691
Wow..it works great..but may i know what does below command do
ping localhost -n 2 > nul

0
 
LVL 42

Expert Comment

by:sedgwick
ID: 33714821
the "ping localhost -n 2 > nul" is just a harmless timer so that all the pages have time to open..
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Gmail Account risks 4 95
input text box not behaving properly when debug points are set 4 75
windows 10 6 45
Parsing an RSS Feed 4 41
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question