Page 1 of 3
Copy/Move dialog and alternative CMD
Posted: 10 Apr 2011 18:57
by Miguel Melo
Just took the plunge and bought XY on the back of yesterday's promotion as an alternative to my xplorer2. Nice one.
Having played around with it a bit I have a couple of suggestions:
1) Would it be possible to have a configuration dialog, on copy and move to other panel, that asks what to do in case of name collisions? I know if you drag'n'drop with the r-button you get certain options but I would prefer a dialog like xplorer2 has that allows you to pick overwrite older/silently overwrite/prompt/whatever for each operation so I don't have to use the mouse. I know backup has some of these options, but you have to pre-configure them and then you're stuck until you go to F9 again;
2) Can Open Command Prompt open something other than CMD? I use TakeCommand Console and it would be cool to point to it (rather than having to create a custom command);
On a side note, I have had XY lose ALL the file/folder icons (in both the file panels and tree) a couple of times. Icons only came back when I logged of/back on. It is not specific to 9.90.700 because I had it hapening when I was evaluating the software a couple of months ago. Is this a known bug?
Many thanks!
Re: Copy/Move dialog and alternative CMD
Posted: 10 Apr 2011 19:19
by admin
1) This will come soon together with a new Copy feature with the (internal) name "XYcopy 2.0". Version 10.0 will have it.
2) Good idea. I'll check that.
3) lose all icons? never have seen that here.
Welcome!
Don
Re: Copy/Move dialog and alternative CMD
Posted: 10 Apr 2011 19:44
by admin
I added a tweak to the next beta version:
Code: Select all
+ Tweak to define a custom command line interpreter (CLI):
CustomCLI=[full or portable path to EXE]
This CLI is used when you use the DOS command syntax in location
ports like the Address Bar, e.g. !dir.
Note that if the tweak is unused (empty) the factory default CLI
is cmd.exe (usually in C:\WINDOWS\system32\).
How to tweak:
http://www.xyplorer.com/xyfc/viewtopic.php?f=10&t=3543
Re: Copy/Move dialog and alternative CMD
Posted: 11 Apr 2011 00:35
by Miguel Melo
Wow!

Truly remarkable - many, many thanks!
I had been admired (on and off for a couple of years) the degree of innovation xyplorer has shown but I couldn't bring myself to bite the bullet because I'm a xplorer2 registered user too and couldn't justify the cost of another Explorer replacement (in particular the lifetime XY Pro version which was the one I wanted). But when I saw the 1 day sale I could not let it pass - especially because with all the austerity measures coming to Portugal it may have been now or never.
Anyway, very glad to be onboard!
Re: Copy/Move dialog and alternative CMD
Posted: 11 Apr 2011 08:12
by admin
So, does it work as expected?

Re: Copy/Move dialog and alternative CMD
Posted: 11 Apr 2011 12:39
by Miguel Melo
admin wrote:So, does it work as expected?

Yes, it worked beautifully! Many thanks!

Re: Copy/Move dialog and alternative CMD
Posted: 12 Apr 2011 10:27
by Miguel Melo
Code: Select all
* Custom CLI: Now the Address Bar shows the icon of the current CLI.
My "Open Command Prompt Here" button on the toolbar still shows the "normal" icon (which is fine) despite me having a CustomCLI... was that supposed to change with the fix above?
Re: Copy/Move dialog and alternative CMD
Posted: 12 Apr 2011 11:09
by serendipity
Miguel Melo wrote:Code: Select all
* Custom CLI: Now the Address Bar shows the icon of the current CLI.
My "Open Command Prompt Here" button on the toolbar still shows the "normal" icon (which is fine) despite me having a CustomCLI... was that supposed to change with the fix above?
No, the icon in the address bar (not toolbar icon) would be different. Try typing ! in address bar you will see the icon.
If you want icon from your CLI in the toolbar you have to create new user button and add your icon from there.
Re: Copy/Move dialog and alternative CMD
Posted: 12 Apr 2011 11:18
by Miguel Melo
serendipity wrote:
No, the icon in the address bar (not toolbar icon) would be different. Try typing ! in address bar you will see the icon.
Oh, I see - didn't know of that "!" functionality (bit of a noob with XY).
In that case I can confirm that both the icon, the sending of the command and the directory it was run in worked correctly with the TCC CLI. Wicked!
Re: Copy/Move dialog and alternative CMD
Posted: 12 Apr 2011 12:16
by TheQwerty
admin wrote:I added a tweak to the next beta version:
Code: Select all
+ Tweak to define a custom command line interpreter (CLI):
CustomCLI=[full or portable path to EXE]
This CLI is used when you use the DOS command syntax in location
ports like the Address Bar, e.g. !dir.
Note that if the tweak is unused (empty) the factory default CLI
is cmd.exe (usually in C:\WINDOWS\system32\).
How to tweak:
http://www.xyplorer.com/xyfc/viewtopic.php?f=10&t=3543
Any chance for argument support?
Unfortunately
Console requires quite a bit of manipulation when called via CLI:
Note: Some shells need an additional switch in the startup command string. E.g. when using cmd.exe, you must put /k at the beginning of your command string:
Console.exe -t cmd -r "/k dir /b"
Re: Copy/Move dialog and alternative CMD
Posted: 12 Apr 2011 12:37
by Miguel Melo
I also thought I needed argument support (and tried to use it in the CLI setting and failed miserably), but managed to rearrange the dust a bit and push everything I needed into the takecommand ini files.
But, yeah, I was lucky... many other consoles will probably need parms.
Re: Copy/Move dialog and alternative CMD
Posted: 12 Apr 2011 14:30
by admin
I'm willing to do it but I lack knowledge about the needed syntax. Can you give a general formula or template?
BTW:
currently /k is auto-prefixed to the command line when you prefix ! in address bar
currently /x is auto-prefixed to the command line when you prefix !! in address bar
Re: Copy/Move dialog and alternative CMD
Posted: 12 Apr 2011 15:24
by TheQwerty
admin wrote:I'm willing to do it but I lack knowledge about the needed syntax. Can you give a general formula or template?
Well, I don't think
you should define the syntax.
What we need is the ability to use something like:
Code: Select all
CustomCLI="path_to.exe" args <Command>
//or more like scripting:
CustomCLI="""path_to.exe"" args <Command>"
But I'm not sure how well the quoting will work with your INI parsing.
If that's a problem maybe it would make more sense to have two tweaks:
Code: Select all
CustomCLI="path_to.exe"
CustomCLIArgs="args <Command>"
In either case if the arguments contain "<Command>", XY replaces it with the input from the AB, if not, XY appends the input to the end.
Re: Copy/Move dialog and alternative CMD
Posted: 12 Apr 2011 15:35
by admin
Ok. This would be good for parsing:
Code: Select all
CustomCLI=path_to.exe|args <Command>
Re: Copy/Move dialog and alternative CMD
Posted: 12 Apr 2011 16:04
by TheQwerty
admin wrote:Ok. This would be good for parsing:
Code: Select all
CustomCLI=path_to.exe|args <Command>
I had considered something similar but rejected the idea because I didn't want to introduce a new syntactical method of doing this (you already have """exe"" args"). I thought splitting it would be more user friendly and possibly better for you (as I imagined the method call had exe and args as separate parameters).
That said, I'm not really too concerned with how you do it, so whatever is easiest for you.
And really if you say no I wouldn't mind either - I just imagined the sets of "people who replace WE" and "people who replace cmd.exe" have a significant overlap, and Console seems to be suggested quite often in the circles I frequent.
TL;DR: That looks fine!
