Link to home
Start Free TrialLog in
Avatar of Sukumar
Sukumar

asked on

open multiple websites using doc sript

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

Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

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
ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of Sukumar
Sukumar

ASKER

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

the "ping localhost -n 2 > nul" is just a harmless timer so that all the pages have time to open..