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 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
add comment

2 Answers

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
add comment

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

share|improve this answer
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.