Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What command line options can I use for opening multiple tabs in IE 8 from the command prompt or a .bat file? I've tried the URLs separated by "", commas, <> and |, but nothing has worked.

share|improve this question
add comment

1 Answer 1

AFAIK IE doesn't support multiple URLs as command-line parameters. You can invoke it multiple times with a single URL each from a batch file or something, but that seems to open separate windows. For launching multiple URLs in tabs in a single IE window, use the following script:

var navOpenInBackgroundTab = 0x1000;
var objIE = new ActiveXObject("InternetExplorer.Application");
objIE.Navigate2("http://www.site1.com");
objIE.Navigate2("http://www.site2.com", navOpenInBackgroundTab);
objIE.Navigate2("http://www.site3.com", navOpenInBackgroundTab);
objIE.Visible = true;

Save as StartIE.js, then either double-click in Windows Explorer, or use wscript.exe StartIE.js at the command prompt to launch.

share|improve this answer
    
Thanks for the info KARAN. –  srikanth Dec 3 '12 at 12:11
    
You're welcome! Since you're new here, don't forget to accept whichever answer (if there are multiple) best solves your issue. –  Karan Dec 3 '12 at 15:12
    
Cheers - works for me –  Umber Ferrule Dec 6 '13 at 11:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.