Windows – Console2 – open new tab in existing session from cmd

command lineconsole2windows 7

Is it possible to open a new Console2 tab from cmd?

I run specific commands from my text editor (sublime) and would love to open them in console instead of regular cmds.

However, I am only able to open a whole new instance of Console2, which I don't like.

Is it possible to target an instance of Console2?

Best Answer

Sorry for self-promotion. I'm the author of another Console Emulator. One of its features - is opening new tab from existing tab (from any program or batch file). Just type

"%ConEmuBaseDir%\ConEmuC.exe" /c program.exe <arguments> -new_console

arguments - (optional) switches of program.exe. -new_console switch has several options.

 a - RunAs shell verb (as Admin on Vista+, login/passw in Win2k and WinXP)
 b - Create background tab
 c - force enable 'Press Enter or Esc to close console' (default)
 h<height> - i.e., h0 - turn buffer off, h9999 - switch to 9999 lines
 n - disable 'Press Enter or Esc to close console'
 r - run as restricted user
 u - ConEmu choose user dialog
 u:<user>:<pwd> - specify user/pwd in args, MUST BE LAST OPTION

BTW, you may start same way GUI programs in ConEmu tab, or start console tools from GUI applications (started in tab).

Attach of existing console or GUI app is also available.