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

In my Windows command prompt, sometimes when I run a command it gets executed in a new command prompt instead of the current one. Is there a way to control this (force commands to always run in current window or always in a new prompt)?

Example: running ipython.exe opens the interpreter in a new prompt (and i've seen this behavior with few other commands which I can't recall right now).

share|improve this question
Can you please provide examples? – user3463 Feb 11 '11 at 5:33
up vote 3 down vote accepted

There are basically two types of Windows applications, console based and window based. This is set by the developer before compiling the code. CMD.EXE is console based, NOTEPAD.EXE is window based. If a console based app is launched from cmd.exe, it will always open in the same window unless you do something to change that (like use the START command). If an app opens in a new window, then it is either window based or the program itself was coded to create a new window.

share|improve this answer

If the program itself opens a new console window, there is nothing you can do to stop it.

share|improve this answer

You must log in to answer this question.

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