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.

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.

share|improve this question
    
By "cmd window", do you mean "console window" or "cmd.exe window"? –  grawity Mar 12 '11 at 14:08
    
cmd.exe window. –  user55542 Mar 12 '11 at 22:36

3 Answers 3

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.

share|improve this answer
    
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
up vote 1 down vote accepted

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

share|improve this answer

Try Console (aka Console2).

share|improve this answer

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.