• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 705
  • Last Modified:

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

0
sukumarr
Asked:
sukumarr
  • 4
1 Solution
 
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 "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
 
Meir RivkinFull 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 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
 
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
0
 
sukumarrAuthor Commented:
Wow..it works great..but may i know what does below command do
ping localhost -n 2 > nul

0
 
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..
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now