Page 1 of 1

cmd.exe alternative

Posted: 10 Nov 2014 23:27
by almacd
I am trying to have XYPlorer invoke Console2.exe instead of the default cmd.exe.
I have configured thus in Tools/Configuration/Templates/Command Line Interpreter.

This works OK when entering "!" in the address bar, but not when using the context menu on folders (in either pane).

Re: cmd.exe alternative

Posted: 10 Nov 2014 23:43
by highend
This works OK when entering "!" in the address bar, but not when using the context menu on folders (in either pane).
Imho XY never had a context menu (and no option to configure one) for a cmd command in a pane.

You need the windows shell to display one.

Google has hundreds of matches what you have to change in the registry to do so.

Re: cmd.exe alternative

Posted: 11 Nov 2014 00:40
by almacd
From http://www.xyplorer.com/release_9.90.htm

Command Line Interpreter. Now you can define a custom command line interpreter with arguments.

You do this in Configuration | Templates | Command Line Interpreter. The Command Line Interpreter is used when you use the DOS command syntax in location ports like the Address Bar, e.g. !dir. It is also used by the command Open Command Prompt Here (Tree folder context menu). It's an alternative to the factory default Command Line Interpreter cmd.exe.

Re: cmd.exe alternative

Posted: 11 Nov 2014 00:56
by highend
Tree folder context menu
You are referring to a context menu that is only used for the tree, not for a pane...

Re: cmd.exe alternative

Posted: 11 Nov 2014 01:57
by almacd
"You are referring to a context menu that is only used for the tree".

Sorry if my terminology wasn't right.

I searched XYPlorer help for "tree". The first entry says that the Tree is invoked by Shift-F8. That toggles the tree on the left side of the XYPlorer window. The context menu item there "Open command window here" opens cmd.exe, not the alternative I specified. Remember that a "!" in the address window brings up my alternative.

It appears to me that is not what http://www.xyplorer.com/release_9.90.htm states.

Re: cmd.exe alternative

Posted: 11 Nov 2014 02:02
by highend
I tried this one:

[x] Use custom command line interpreter (else default to cmd.exe):
Executable:
C:\Windows\notepad.exe

Arguments left empty

! in the address bar opens notepad. Fine

but:

Open command prompt here on a folder in the tree opens:
Notepad^^

So that context menu respects the setting for [x] Use custom command line interpreter

Re: cmd.exe alternative

Posted: 11 Nov 2014 02:37
by almacd
I tried your notepad experiment

As before, worked in the address bar, but not in the tree.

I guess that it will have to remain a mystery.

Thanks for trying.

Re: cmd.exe alternative

Posted: 11 Nov 2014 03:41
by bdeshi
The
context menu item there "Open command window here" opens cmd.exe
I think you're not using XY's own ctx menu option.

Did you check/tick these?
1) Configuration -> Menu, Mouse, Safety -> Custom Items in Shell context menu
2) Configuration -> Menu, Mouse, Safety -> Folder Tree... [button] -> Open Command Prompt Here

Then use "Open Command Prompt Here" ctx item in the tree. (it should be above a separator above the "Open" ctx menu item)

Re: cmd.exe alternative

Posted: 11 Nov 2014 04:10
by almacd
The first box was ticked, but not the second.

Upon ticking it, everything worked. Thank you!!

Console2 is so much better than cmd, especially with the configurations from

http://www.hanselman.com/blog/Console2A ... rompt.aspx

Then I can do what I'm used to doing with Windows programs.

Re: cmd.exe alternative

Posted: 11 Nov 2014 04:52
by bdeshi
BTW, check out Portable Open With Menu/Portable File Associations feature to open files&folders in file panes in custom cmd consoles. Off the top of my head, these are good candidates for the POM menu.

Code: Select all

|"Open Command Prompr Here|"\>::run "%COMSPEC% /K cd ""<pfaitem>""", getpathcomponent(<pfaitem>, path);
|"Open in Command Prompt"\>::run "%COMSPEC% /K ""<pfaitem>""", getpathcomponent(<pfaitem>, path); 

Re: cmd.exe alternative

Posted: 11 Nov 2014 13:29
by TheQwerty
almacd wrote:Console2 is so much better than cmd, especially with the configurations from
FYI, you might be interested in ConsoleZ.

It's a fork of Console2 with a few improvements and some more recent development.

Re: cmd.exe alternative

Posted: 12 Nov 2014 22:07
by almacd
Thanks, TheQwerty.

I like the search facility in ConsoleZ, so I switched. And if it is under more active development, that is a plus.

Re: cmd.exe alternative

Posted: 12 Nov 2014 22:08
by almacd
SammaySarkar,

Thanks.

I don't have the need for this now, but I've stored the info away for possible future use.