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.

In Windows XP, I am trying to start multiple IE7 with a batch file like this:

@echo on
"c:\windows\explorer.exe"
"c:\windows\explorer.exe"
"c:\Program Files\Internet Explorer\iexplore.exe"
"c:\Program Files\Internet Explorer\iexplore.exe"

The above program starts 2 concurrent copies of Explorer.exe successfully. But it just start 1st copy of IE7 and stops there waiting for it to terminate before proceeding to the next line to start the 2nd copy. And it is until the 2nd IE7 process terminates that the batch file's console window disappears.

How can I start 2 concurrent IE7's and have the batch file console finishes immediately? Just like in UNIX sh we would add an "&" after the executable file name to create a background process.

Actually, what bothers me is why there is a difference in behaviour among starting explorer.exe vs iexplorer.exe?

share|improve this question

1 Answer 1

Use the start command:

@echo on
"c:\windows\explorer.exe"
"c:\windows\explorer.exe"
start /d "c:\Program Files\Internet Explorer" iexplore.exe
start /d "c:\Program Files\Internet Explorer" iexplore.exe
share|improve this answer
    
Thx, but why the explorer.exe doesnt need a start command? Also, is it start /b? –  JavaMan Apr 19 '11 at 8:19
    
I'm not sure about, but I think it happens because %path% enviroment variable, that includes "c:\windows\explorer" as default. Did you try just "explorer.exe" than "c:\windows\explorer"? It runs. Try "start iexplore" too. "/d" in start means the directory where the applicative starts, but I think it is not so important for "iexplore"... –  kokbira May 16 '11 at 17:33

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.