Page 1 of 1

Xyplorer seems incompatible with ExtremeCopy

Posted: 30 Jan 2018 10:34
by zanjero1
Xyplorer seems incompatible with ExtremeCopy Pro. It is much appreciated to fix this "bug".

hopefully

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 30 Jan 2018 10:43
by highend
Can you be a bit more explicit on what exactly is happening and what should be happening?
Is it driven via a right click context menu? If yes, which version of ExtremeCopy is installed, x64 or x86?

Apart from that XY only support two external copy handlers atm, TeraCopy and FastCopy...

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 31 Jan 2018 02:06
by zanjero1
ExtremeCopy-2.3.4-pro-64bits is installed

run as Explorer's default copier, in Explorer , ctrl+c ctrl+v to automatically activate ExtremeCopy

in XY , ctrl+c ctrl+v activates no ExtremeCopy

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 31 Jan 2018 05:50
by highend
Even the 32-bit version of it doesn't run correctly (e.g. it's not used by Windows Explorer, which is a 64-bit process) either
and it doesn't register the shell context menus as it should (as an alternative way to invoke the copy and paste)...

So the only way I see is to operate it with scripting. E.g. like:

Code: Select all

    $exe = "C:\Program Files (x86)\Easersoft\ExtremeCopy\ExtremeCopy.exe";

    // Check if there are item to copy in the clipboard
    if (exists(gettoken(<clipboard>, 1, <crlf>)) != 0) {
        // Correctly quote all src items
        $src = replace(replace(formatlist(<clipboard>, "q", <crlf>), '"', '""'), <crlf>, " ");
        // Dual pane active, set the inactive pane as destination
        if (get("#800")) {
            $dst = get("Path", "i");
        // Otherwise if a folder is selected, use this
        } elseif (exists(<curitem>) == 2) {
            $dst = <curitem>;
        // Otherwise use the current folder
        } else {
            $dst = <curpath>;
        }
        // Make sure we have a trailing backslash...
        if (strpos($dst, "\", -1) == -1) { $dst = $dst . "\"; }
        $switches = " -exe copy";
        run """$exe"" -src $src -dst ""$dst"" $switches", %TEMP%, 0, 1;
    } else {
        status "No item(s) in clipboard, aborted!", "8B4513", "stop";
    }
The way it would work is:
- Copy your items with Ctrl+c (this puts them into the clipboard)
- Three options:
a.) You've opened the destination folder in the second pane before (and the first pane is still active)
b.) Second pane is not visible and you select your destination folder now
c.) Second pane is not visible and you just stay in the current directory or switch into a different one -> Destination folder = current folder
- Invoke the script (e.g. you've put it on a button before or defined it as a user-defined command
and e.g. assigned it a keyboard shortcut, etc.)

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 31 Jan 2018 09:02
by zanjero1
this line:

run """$exe"" -src $src -dst ""$dst"" $switches", %TEMP%, 0, 1;

raises error of ExtremeCopy "" ————“Invalide File Name”


$exe= C:\Program Files (x86)\Easersoft\ExtremeCopy\ExtremeCopy.exe
$src= ""G:\Program Files\xyplorer_full\Data\Scripts\extremecopy.xys""
$dst= Z:\Users
$switches= -exe copy

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 31 Jan 2018 09:08
by highend
Put a:

Code: Select all

step;
above the run ... line in the script (at least indented by one space!) and execute it again
(same selected source file, same target directory)

When the "Stepping through a script" window shows up, right click in the lower part of
it, choose "Copy Command (Parsed and resolved)" and paste what's in the clipboard
now again (in code tags)

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 31 Jan 2018 09:12
by zanjero1
run
----
"C:\Program Files\Easersoft\ExtremeCopy\ExtremeCopy.exe" -src ""G:\Program Files\xyplorer_full\Data\Scripts\extremecopy.xys"" -dst "Z:\Users" -exe copy
----
Z:\Users\02108\AppData\Local\Temp
----
0
----
1



finally
got it like this
it works

Code: Select all


    $exe = "C:\Program Files\Easersoft\ExtremeCopy\ExtremeCopy.exe";

    // Check if there are item to copy in the clipboard
    if (exists(gettoken(<clipboard>, 1, <crlf>)) != 0) {
        // Correctly quote all src items
        $src = replace(replace(formatlist(<clipboard>, "q", <crlf>), '"', '""'), <crlf>, " ");
	                                  $src = replace($src ,'"',"");

        // Dual pane active, set the inactive pane as destination
        if (get("#800")) {
            $dst = get("Path", "i");
        // Otherwise if a folder is selected, use this
        } elseif (exists(<curitem>) == 2) {
            $dst = <curitem>;
        // Otherwise use the current folder
        } else {
            $dst = <curpath>;
        }
        // Make sure we have a trailing backslash...
        if (strpos($dst, "\", -1) == -1) { $dst = $dst . "\"; }
        $switches = " -exe copy";
                                          run """$exe"" -src ""$src"" -dst ""$dst"" $switches", %TEMP%, 0, 1;
    } else {
        status "No item(s) in clipboard, aborted!", "8B4513", "stop";
    }


Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 31 Jan 2018 09:29
by highend
Sorry but this isn't what I asked for. Forget the step; command in the script file, just put
a question mark directly before the run command like this:

Code: Select all

?run """$exe"" -src $src -dst ""$dst"" $switches", %TEMP%, 0, 1;
and then follow the directions from my last post again.

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 31 Jan 2018 09:44
by zanjero1
is
sendkeys"^{C}";
illegal in XY?

and one more suggestion:

add configuration items like ExtremeCopy Pro

for menu--"copy to the other pane"

if meet "Same File Name" then
if source file "Older" then
...
otherwise
...

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 31 Jan 2018 09:51
by zanjero1
run
----
"C:\Program Files\Easersoft\ExtremeCopy\ExtremeCopy.exe" -src ""G:\Program Files\xyplorer_full\Data\Scripts\extremecopy.xys"" -dst "Z:\Users" -exe copy
----
Z:\Users\02108\AppData\Local\Temp
----
0
----
1

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 31 Jan 2018 10:03
by highend
You're sending a Ctrl + Shift + C here. For what?
If you want XY to copy the selected items to the clipboard,
use

Code: Select all

#101;
instead
"C:\Program Files\Easersoft\ExtremeCopy\ExtremeCopy.exe" -src ""G:\Program Files\xyplorer_full\Data\Scripts\extremecopy.xys"" -dst "Z:\Users" -exe copy
A slightly modified script, it should work now:

Code: Select all

    $exe = "C:\Program Files (x86)\Easersoft\ExtremeCopy\ExtremeCopy.exes";
    end (exists($exe) != 1), "ExtremeCopy.exe not found, check it's path!";

    // Check if there are item to copy in the clipboard
    if (exists(gettoken(<clipboard>, 1, <crlf>)) != 0) {
        // Correctly quote all src items
        $src = replace(formatlist(<clipboard>, "q", <crlf>), <crlf>, " ");
        // Dual pane active, set the inactive pane as destination
        if (get("#800")) {
            $dst = get("Path", "i");
        // Otherwise if a folder is selected, use this
        } elseif (exists(<curitem>) == 2) {
            $dst = <curitem>;
        // Otherwise use the current folder
        } else {
            $dst = <curpath>;
        }
        // Make sure we have a trailing backslash...
        if !(regexmatches($dst, "\\$")) { $dst = $dst . "\"; }
        $switches = "-exe copy";
        run """$exe"" -src $src -dst $dst $switches", %TEMP%, 0, 1;
    } else {
        status "No item(s) in clipboard, aborted!", "8B4513", "stop";
    }

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 31 Jan 2018 10:14
by zanjero1
perfect, thank you so much
best wishes :)

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 06 Feb 2022 09:21
by tobwen
Some questions about the handling, since I am interested in using ExtremeCopy too.

At first I copied the script code from the last post of @highend into a new file \Data\Scripts\extremecopy.xys

It seems to me that there is still a slight error

$exe = "C:\Program Files (x86)\Easersoft\ExtremeCopy\ExtremeCopy.exes";

should be renamed to

$exe = "C:\Program Files (x86)\Easersoft\ExtremeCopy\ExtremeCopy.exe";

Ok. Now I restarted XYplorer and expected that XYplorer automatically reads all existing *.xps scripts at startup from the corresponding folder.
This seems to be not the case.

When I mark a large file then right click I expected (like in Windows Explorer) two new context menus "Extreme Copy to" and "Extreme Move to".
But no such context menus are available.

How do I have to enable them in XYplorer?

I already enabled "Show the 64bit context menu"

Whats wrong?

Re: Xyplorer seems incompatible with ExtremeCopy

Posted: 06 Feb 2022 14:42
by RalphM
That's not how this is supposed to work.
If you read the posts further up in this thread you will find that the script is supposed to be started from a button or via a shortcut.
Apparently there were some problems with Extreme Copy, so the usual integration with XY (by means of defining it as the external copy handler) didn't work.