open multiple websites using doc sript


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"

Open in new window

Who is Participating?
Meir RivkinConnect With a Mentor Full stack Software EngineerCommented:
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 localhost -n 2 > nulstart http://dmt003aaashjuae:8080/dataken from
Meir RivkinFull stack Software EngineerCommented:
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 "",navOpenInBackgroundTaboIE.Navigate2 "http://dmt003aaashjuae:8080/da",navOpenInBackgroundTaboIE.Visible = truetaken from
Meir RivkinFull stack Software EngineerCommented:
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
sukumarrAuthor Commented: works great..but may i know what does below command do
ping localhost -n 2 > nul

Meir RivkinFull stack Software EngineerCommented:
the "ping localhost -n 2 > nul" is just a harmless timer so that all the pages have time to open..
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.