x2alpha szDosCmdPreamble

Chitchat about x² / 2X products

Moderators: fgagnon, nikos, Site Mods

sgp
Member
Member
Posts: 31
Joined: 2003 Jan 19, 11:23

Post by sgp »

In x2 alpha 24 I set szDosCmdPreamble registry setting to 4nt.exe. When I type $ [enter] in the address bar I get the 4nt box as expected, but when I type "$ dirs" I get a console window saying that the "dirs" command is unrecognized (dirs is a 4nt builtin). What am I missing?
User avatar
nikos
Site Admin
Site Admin
Posts: 16341
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

i am not aware of this particular command processor. What you have observed is the default x2 command redirector, which only works for the default cmd.exe.

If you want to switch this feature off you'll need to tweak binConsoleRedirection as explained in alpha.txt. Just set it to 0 (zero) and all commands will go to your 4nt
sgp
Member
Member
Posts: 31
Joined: 2003 Jan 19, 11:23

Post by sgp »

Are you saying that szDosCmdPreamble isn't honored if binConsoleRedirection isn't set to zero?
User avatar
nikos
Site Admin
Site Admin
Posts: 16341
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

yep!
if redirection is active then the preamb(p)le is used for "$" on its own. For non-empty $-commands the redirector (cmd.exe) will be used unless you modify binConsoleRedirection as mentioned
sgp
Member
Member
Posts: 31
Joined: 2003 Jan 19, 11:23

Post by sgp »

Ok, I disable the console redirector and now "$ dir" outputs to a 4NT window. Is it possible to have all subsequent "$ xxx" commands output to the _same_ window, rather than starting a new window for each command? alpha.txt seems to imply that it is possible to specify using a persistent command processor by setting binConsoleRedirection to 4, but it isn't working for me.
BTW, 4NT is the NT/win2k/XP version of 4DOS, a popular DOS replacement shell by JPsoft.
User avatar
nikos
Site Admin
Site Admin
Posts: 16341
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

the redirector has to establish intricate and reliable communication with the $-command processor. Details like unicode pipes and stuff preclude the generalization to 3rd party cmd-replacements. So values in binConsoleRedirection only apply to cmd.exe

i could have a go with 4NT (assuming i could find one :) )but that will have to wait till other more pressing issues are dealt with
sgp
Member
Member
Posts: 31
Joined: 2003 Jan 19, 11:23

Post by sgp »

nikos wrote:i could have a go with 4NT (assuming i could find one :) )but that will have to wait till other more pressing issues are dealt with
I've waited till now to reply because I was waiting for Jpsoft to release their newest 4NT version. It's out now. A 30-day fully functional free eval copy can be downloaded from http://www.jpsoft.com. Many would agree with me it's an allmighty cmd.com replacement. I really hope you will consider supporting it in x2. Jpsoft also make takecommand32, a true win32 app that provides the same functionality of 4NT and more. Perhaps this would be easier to support in x2.