I use an editor that allows me to type in a command to run. In order to see the output without having to redirect it to a file, I precede the command with "cmd /k," which leaves an open cmd.exe window. So I'd like to find a way to catch the call to cmd.exe and pass it onto an application that tabifies cmd.exe, a terminal emulator as it's called. The desired result would be similar to what happens in a tabbed editor, when that editor is to open some file, it does so in another tab, and not in another window. While in a given situation it may be easier to modify the command to redirect output to display in the editor itself, in general it would be more helpful if I could find a way to catch all such calls into one window.

  • By "cmd window", do you mean "console window" or "cmd.exe window"? – user1686 Mar 12 '11 at 14:08
  • cmd.exe window. – user55542 Mar 12 '11 at 22:36

I suggest leaving cmd for PowerShell. And PowerShell ISE (integrated scripting environment) which supports tabs, each of which can hold multiple files being editted) and includes a debugger.

  • Before I install PowerShell, would you care to explain if I'll be able to have it catch commanads like "cmd /k program" in a new tab? Or will I have to change such commands to something else? If so, what? – user55542 Mar 12 '11 at 22:52
  • @user55542: In ISE control-T opens a new tab, and then run the command in that tab (each tab is a separate PSH session in the same process). – Richard Mar 13 '11 at 8:15
  • I meant I do not open a cmd window from which I type commands to run. But from an editor, for example, I might run a command to compile something. That command is going to leave a cmd window in which any compilation messages may be printed. Can I use powershell for this? – user55542 Mar 13 '11 at 22:27
  • @user55542 It would rather depend on the editor (it may well be hard-coded to use cmd.exe).. On Windows all the editors I've used have always captured any output into one of their own Windows, so I've never really had an issue like that. – Richard Mar 13 '11 at 23:08
  • The editor just runs the command which I type, e.g. "cmd /k ..." I use cmd /k so I can see the output. I could, in this case, modify it to show output in the editor, but it'd be very helpful in general to find a way to catch such cmd instances into a single tabbed window. If I can use powershell to do that instead of cmd that's good too. – user55542 Mar 13 '11 at 23:46

When a program that attains the above criteria is found, this post may be edited to link to it.


Try Console (aka Console2).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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