cmd.exe alternative
-
almacd
- Posts: 15
- Joined: 19 Apr 2012 23:21
cmd.exe alternative
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).
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).
-
highend
- Posts: 14950
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: cmd.exe alternative
Imho XY never had a context menu (and no option to configure one) for a cmd command in a pane.This works OK when entering "!" in the address bar, but not when using the context menu on folders (in either 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.
One of my scripts helped you out? Please donate via Paypal
-
almacd
- Posts: 15
- Joined: 19 Apr 2012 23:21
Re: cmd.exe alternative
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.
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.
-
highend
- Posts: 14950
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: cmd.exe alternative
You are referring to a context menu that is only used for the tree, not for a pane...Tree folder context menu
One of my scripts helped you out? Please donate via Paypal
-
almacd
- Posts: 15
- Joined: 19 Apr 2012 23:21
Re: cmd.exe alternative
"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.
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.
-
highend
- Posts: 14950
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: cmd.exe alternative
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
[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
One of my scripts helped you out? Please donate via Paypal
-
almacd
- Posts: 15
- Joined: 19 Apr 2012 23:21
Re: cmd.exe alternative
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.
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.
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: cmd.exe alternative
I think you're not using XY's own ctx menu option.The
context menu item there "Open command window here" opens cmd.exe
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)
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
almacd
- Posts: 15
- Joined: 19 Apr 2012 23:21
Re: cmd.exe alternative
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.
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.
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: cmd.exe alternative
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); Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: cmd.exe alternative
FYI, you might be interested in ConsoleZ.almacd wrote:Console2 is so much better than cmd, especially with the configurations from
It's a fork of Console2 with a few improvements and some more recent development.
-
almacd
- Posts: 15
- Joined: 19 Apr 2012 23:21
Re: cmd.exe alternative
Thanks, TheQwerty.
I like the search facility in ConsoleZ, so I switched. And if it is under more active development, that is a plus.
I like the search facility in ConsoleZ, so I switched. And if it is under more active development, that is a plus.
-
almacd
- Posts: 15
- Joined: 19 Apr 2012 23:21
Re: cmd.exe alternative
SammaySarkar,
Thanks.
I don't have the need for this now, but I've stored the info away for possible future use.
Thanks.
I don't have the need for this now, but I've stored the info away for possible future use.
XYplorer Beta Club