Console / CMD embed

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
neosk
Junior Member
Junior Member
Posts: 7
Joined: 2011-10-15, 11:40 UTC

Console / CMD embed

Post by *neosk »

CTRL+O (like middnight commander) would show a console hook from CMD/Powershell. Would be a cool feature to have!
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Hello neosk,
Assign Ctrl-O to the command cm_ExecuteDOS.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
neosk
Junior Member
Junior Member
Posts: 7
Joined: 2011-10-15, 11:40 UTC

Post 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.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3379
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

No, not possible under Windows.
Use Norton Commander (Dos Version) for that
Hoecker sie sind raus!
neosk
Junior Member
Junior Member
Posts: 7
Joined: 2011-10-15, 11:40 UTC

Post 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 ;)
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

It can be done. DoubleCMD does it.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3379
Joined: 2003-05-06, 11:46 UTC

Post 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...
Hoecker sie sind raus!
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

neosk,
The idea is to have it in the same window.
Well, you could try TConsole or TotalConsole.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post 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.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

I couldn't get TConsole or TotalConsole (maybe both) to work under Win7 x64, and they didn't work under Win2K either.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50549
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Try my recompiled version of TotalConsole (32-bit only):
http://ghisler.ch/board/viewtopic.php?p=171333#171333
Author of Total Commander
https://www.ghisler.com
neosk
Junior Member
Junior Member
Posts: 7
Joined: 2011-10-15, 11:40 UTC

Post 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? :)
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Well, you could try TConsole or TotalConsole.
TConsole hasn't worked in the last many version of TC.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply