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
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
here's in vbscript:navOpenInBackgrou ndTab = &h1000set oIE = CreateObject("InternetExpl orer.Appli cation")oI E.Navigate 2 "http://shjdocweb1:8080/da"oIE.Navigate2 "http://shjdocweb2:8080/webto",navOpenInBackgroundTabo IE.Navigat e2 "http://shjdocweb3:8080/da",navOpenInBackgroundTabo IE.Navigat e2 "http://10.100.169.33:8080/webtop",navOpenInBackgroundTabo IE.Navigat e2 "http://dmt003aaashjuae:8080/da",navOpenInBackgroundTabo IE.Visible = truetaken from http://www.vistaheads.com/forums/microsoft-public-internetexplorer-general/438407-command-line-open-several-websites-multiple-tabs.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
ASKER
Wow..it works great..but may i know what does below command do
ping localhost -n 2 > nul
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..