Solved

open multiple websites using doc sript

Posted on 2010-09-20
5
672 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
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.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

777 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