Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a POS application that will allow a call to another application. I have a need to have an Internet Explorer window open and switch to it. The command that I am using opens a new Internet Explorer window when run:

C:\Program Files\Internet Explorer\iexplore.exe

Is there any way to get the command to open the existing open window?

share|improve this question
I don't think this can be done via command-line, but it can be set globally in Internet Options. (i.e.: Open all links from external applications in the current window.) – Iszi May 25 '11 at 18:34

If familiar with code, you could use the user32.dll method "SetForegroundWindow":

You could then just switch window to the new one when it opens? There's an example of pInvoking from managed code on the MS site. Just switch the code for the specifics.

The supported CLI switches for Internet explorer can be found here (doesn't look like there's one that helps you):

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .