Xyplorer seems incompatible with ExtremeCopy

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
zanjero1
Posts: 10
Joined: 30 Jan 2018 10:31

Xyplorer seems incompatible with ExtremeCopy

Post by zanjero1 »

Xyplorer seems incompatible with ExtremeCopy Pro. It is much appreciated to fix this "bug".

hopefully

highend
Posts: 14634
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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...
One of my scripts helped you out? Please donate via Paypal

zanjero1
Posts: 10
Joined: 30 Jan 2018 10:31

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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

highend
Posts: 14634
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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.)
One of my scripts helped you out? Please donate via Paypal

zanjero1
Posts: 10
Joined: 30 Jan 2018 10:31

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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

highend
Posts: 14634
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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)
One of my scripts helped you out? Please donate via Paypal

zanjero1
Posts: 10
Joined: 30 Jan 2018 10:31

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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";
    }

Last edited by zanjero1 on 31 Jan 2018 09:58, edited 2 times in total.

highend
Posts: 14634
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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.
One of my scripts helped you out? Please donate via Paypal

zanjero1
Posts: 10
Joined: 30 Jan 2018 10:31

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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
...

zanjero1
Posts: 10
Joined: 30 Jan 2018 10:31

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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

highend
Posts: 14634
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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";
    }
One of my scripts helped you out? Please donate via Paypal

zanjero1
Posts: 10
Joined: 30 Jan 2018 10:31

Re: Xyplorer seems incompatible with ExtremeCopy

Post by zanjero1 »

perfect, thank you so much
best wishes :)

tobwen
Posts: 40
Joined: 08 Jan 2022 08:43

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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?

RalphM
Posts: 2049
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Xyplorer seems incompatible with ExtremeCopy

Post 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.
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

Post Reply