Page 1 of 1

Console / CMD embed

Posted: 2011-10-15, 16:52 UTC
by neosk
CTRL+O (like middnight commander) would show a console hook from CMD/Powershell. Would be a cool feature to have!

Posted: 2011-10-15, 17:49 UTC
by Hacker
Hello neosk,
Assign Ctrl-O to the command cm_ExecuteDOS.

HTH
Roman

Posted: 2011-10-15, 22:08 UTC
by neosk
Hacker wrote:Hello neosk,
Assign Ctrl-O to the command cm_ExecuteDOS.

HTH
Roman
that opens a new window. The idea is to have it in the same window. Hence the Suggestion. if the _ob could be hooked through winApi to some area in TC, it would be sweet.

Posted: 2011-10-15, 23:23 UTC
by Sir_SiLvA
No, not possible under Windows.
Use Norton Commander (Dos Version) for that

Posted: 2011-10-16, 06:32 UTC
by neosk
Sir_SiLvA wrote:No, not possible under Windows.
Use Norton Commander (Dos Version) for that
any more programming-experienced response than "It cannot be done" ?
Because firing up cmd/powershell as a background process by an app with its output buffer being redirected to its parent process' window handle by windows API sounds a little bit more plausible than "it cannot be done"

PS:
this is an ID of a link from a site where you make the links "tiny"

Code: Select all

42xktt3
so, please, don't tell me it's impossible ;)

Posted: 2011-10-16, 08:04 UTC
by Balderstrom
It can be done. DoubleCMD does it.

Posted: 2011-10-16, 08:50 UTC
by Sir_SiLvA
neosk wrote:any more programming-experienced response than "It cannot be done" ?
Because firing up cmd/powershell as a background process by an app with its output buffer being redirected to its parent process' window handle by windows API sounds a little bit more plausible than "it cannot be done"
If you have no clue then why do you ask at all.... and where Do i state its impossible? You asked if it can be done with TC as TC is now and the answer is no...
(sorry Hacker I know but I could have been more unfriendly here)
And Implementing it, is a waste of time as Dos is dying out - Windows is a 100% Gui-OS not like Linux...

Posted: 2011-10-16, 09:13 UTC
by Hacker
neosk,
The idea is to have it in the same window.
Well, you could try TConsole or TotalConsole.

HTH
Roman

Posted: 2011-10-16, 09:14 UTC
by Balderstrom
I take it Sir Silva doesn't do any scripting whatsoever. Else he might realize a cmd prompt can be used for pretty much anything, CMD.exe, WSCript, starting point for powershell. Launch any program. Enumerate your file system, quicker than any gui tool will.

Even AMD's CCC/Radeon Catalyst installer uses the cmd prompt for a few things :-)

Having an actual CMD Prompt in TC would be far more useful than it's current "bottom command-line".

And having a CMD Prompt in TC that could actually utilize TC's internal "Button" variables would be near perfect.

Posted: 2011-10-16, 09:18 UTC
by Balderstrom
I couldn't get TConsole or TotalConsole (maybe both) to work under Win7 x64, and they didn't work under Win2K either.

Posted: 2011-10-16, 14:14 UTC
by ghisler(Author)
Try my recompiled version of TotalConsole (32-bit only):
http://ghisler.ch/board/viewtopic.php?p=171333#171333

Posted: 2011-10-16, 19:50 UTC
by neosk
Sir_SiLvA wrote:
neosk wrote:any more programming-experienced response than "It cannot be done" ?
Because firing up cmd/powershell as a background process by an app with its output buffer being redirected to its parent process' window handle by windows API sounds a little bit more plausible than "it cannot be done"
If you have no clue then why do you ask at all.... and where Do i state its impossible? You asked if it can be done with TC as TC is now and the answer is no...
(sorry Hacker I know but I could have been more unfriendly here)
And Implementing it, is a waste of time as Dos is dying out - Windows is a 100% Gui-OS not like Linux...
you stated it here:
Sir_SiLvA wrote:No, not possible under Windows.
and kiiinda interesting point of view you have there on a shell in windows.
Ever wondered why MS created powershell? One would only guess that they didn't fiddle with it just because they didn't have anything better to do.
example: I find it rather faster to do network related operations via commandline in windows than click them through. Having the possibility to use it within tcmd is appealing. And that's just a tip of the iceberg you see in powershell ;)
And hence the request in "Suggestion Forum"

anyway, thanks Ghisler for providing tconsole, though I didn't manage to fire it up :( You think you could possibly make something like this into some future version? :)

Posted: 2011-10-17, 04:14 UTC
by petermad
Well, you could try TConsole or TotalConsole.
TConsole hasn't worked in the last many version of TC.