Teracopy does not pickup drag and drop inside Xyplorer.

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
kartal
Posts: 208
Joined: 14 Aug 2008 18:06

Teracopy does not pickup drag and drop inside Xyplorer.

Post by kartal »

Hi

Is there a way to make teracopy work inside Xyplorer(especially drag and drop version) ? I saw the scripting work around. But that did not work for me somehow. Script does not do anything except it brings a menu of script commands when I run from user commands.

Is anyone using any other copy handler successfully with xplorer under 64bit xp?


I am under 64bit xp using latest Xyplorer.

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by Muroph »

kartal wrote:Is there a way to make teracopy work inside Xyplorer(especially drag and drop version) ?
use the right mouse button.
the teracopy options should be on the menu that pops up.
or in "default context menu" or smth like that if you use xy custom context menu (i'm too lazy too check).
kartal wrote:Script does not do anything except it brings a menu of script commands when I run from user commands.
looks like the forum software doesn't like lines starting with a single space.
since it's a multi-line script all lines but the first should start with at least one space.
i fixed that on the post.
and check if the path you installed teracopy and the path to teracopy.exe on the script match.
kartal wrote:Is anyone using any other copy handler successfully with xplorer under 64bit xp?
i looked for other apps but couldn't find any that worked.
i'd also want to know if there's one out there that works without scripting.
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by lukescammell »

I don't know if XP 64 is like Vista 64, but I don't get any context menus with either 7-Zip or TeraCopy (and no drag and drop with TeraCopy).

In order to get the TeraCopy script working for me I had to use the following in the path - again, might be different in XP64, dunno, give it a go...

Code: Select all

%ProgramW6432%
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

kartal
Posts: 208
Joined: 14 Aug 2008 18:06

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by kartal »

I set the teracopy path properly and it is yet not working for me :( When I run teracopy paste, all it does is opening "my computer" with windows explorer :(

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by Muroph »

that's a problem with the quotes after xy7.50.01.
you have to triple quote the run command argument.
did you get the fixed version i posted?

Code: Select all

  run """%programfiles%\TeraCopy\teracopy.exe" $op *"<xypath>\teracopylist.tmp" "$path\""";
and you could just use the full path to teracopy.exe's path instead of a system variable (no guessing).
lukescammell wrote:I don't know if XP 64 is like Vista 64, but I don't get any context menus with either 7-Zip or TeraCopy (and no drag and drop with TeraCopy).
might be your 64bits version, but i get some teracopy items when i drag and drop using the right mouse button.
the left MB uses the default copy handler.
i think there's an option to put teracopy items in the normal context menu for files/folders, but i'm not sure.
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

kartal
Posts: 208
Joined: 14 Aug 2008 18:06

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by kartal »

Yes I have tried with fixed version

here is what I have

//save current path. this will be the target folder
set $path, <curpath>;
//restore operation type
getkey $op, teracopyop, tc, "<xypath>\teracopylist.tmp";
//run teracopy.exe using command line parameters
//teracopy.exe [operation] *
  • [target]
    run """E:\INCELENECEK_YAZILIMLAR\sistem\TeraCopy1\TeraCopy.exe" $op *"<xypath>\teracopylist.tmp" "$path\""";
    status TeraCopy: Paste, 84C400, ready;

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by Muroph »

i was testing the script and noticed that the quotes arround the argument are actually causing the problem.
looks like something changed from v7.60.07 to .08.
try this:

Code: Select all

  run "E:\INCELENECEK_YAZILIMLAR\sistem\TeraCopy1\TeraCopy.exe" $op *"<xypath>\teracopylist.tmp" "$path\";
i'll soon post a fixed version (again).
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

admin
Site Admin
Posts: 66296
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by admin »

Muroph wrote:i was testing the script and noticed that the quotes arround the argument are actually causing the problem.
looks like something changed from v7.60.07 to .08.
try this:

Code: Select all

  run "E:\INCELENECEK_YAZILIMLAR\sistem\TeraCopy1\TeraCopy.exe" $op *"<xypath>\teracopylist.tmp" "$path\";
i'll soon post a fixed version (again).
Yes, that's true, there was a change. It was actually a half-bug that the outer quotes were stripped from lines like

Code: Select all

::msg "a" "b";
Now this does not happen anymore. I say "half-bug" because the recommended syntax for this would be

Code: Select all

::msg '"a" "b"';
and written that way, the quotes had never been stripped. :)

Of course, you can also do it like this:

Code: Select all

::$q='"'; msg $q."a".$q." ".$q."b".$q;
In some future there will be another option to do the quoting:

Code: Select all

::msg quote("a") . " " . quote("b");

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by PeterH »

Isn't here something wrong in
run """%programfiles%\TeraCopy\teracopy.exe" $op *"<xypath>\teracopylist.tmp" "$path\"""; ?
Shouldn't it be
run """%programfiles%\TeraCopy\teracopy.exe"" $op *""<xypath>\teracopylist.tmp"" ""$path\"""; ?

As I think quotes inside a quoted string should be doubled. Or do I understand something wrong?

admin
Site Admin
Posts: 66296
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by admin »

PeterH wrote:Isn't here something wrong in
run """%programfiles%\TeraCopy\teracopy.exe" $op *"<xypath>\teracopylist.tmp" "$path\"""; ?
Shouldn't it be
run """%programfiles%\TeraCopy\teracopy.exe"" $op *""<xypath>\teracopylist.tmp"" ""$path\"""; ?

As I think quotes inside a quoted string should be doubled. Or do I understand something wrong?
Your version looks okay to me. Should work.

But this version (using interpolation in a non-quoted string) works, too:

Code: Select all

run "%programfiles%\TeraCopy\teracopy.exe" $op *"<xypath>\teracopylist.tmp" "$path\";
But is not recommended and might even break in future.

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by Muroph »

i know it's not recommended.
but i'm completely lost when it comes to quoting strings, so i do it by trial and error.
where can i find the rules for quoting (i.e. where i should double-quote, etc.)?

i'll change the script to use what PeterH posted.
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

admin
Site Admin
Posts: 66296
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by admin »

Muroph wrote:i know it's not recommended.
but i'm completely lost when it comes to quoting strings, so i do it by trial and error.
where can i find the rules for quoting (i.e. where i should double-quote, etc.)?

i'll change the script to use what PeterH posted.
With a good Editor and syntax coloring it's pretty easy to check whether your quoting is alright.

Quoting Rules:
1/ Everything is either in double-quotes, or in single-quotes, or outside of any quotes.
2/ To have double-quotes inside double-quotes they must be doubled.
3/ To have single-quotes inside single-quotes they must be doubled.
4/ Variables are resolved in double-quotes and outside of any quotes, but not in single-quotes.

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by PeterH »

Hey - Don was faster! (And used better words than I did...) Thoug here some samples:
The word let's can be: "let's" or 'let''s'
run "file" can be "run ""file""" or 'run "file"'

PS very fine of the forum software to show a new post, when clicking "Preview" - you can react to that before you send your own post...

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by Muroph »

thanks guys, that really helped.

i use editpad pro, but without syntax coloring.
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

kartal
Posts: 208
Joined: 14 Aug 2008 18:06

Re: Teracopy does not pickup drag and drop inside Xyplorer.

Post by kartal »

It works now however I am getting same errors in every copy operation. The operation seems to work fine but soemhow these errors are sneaked into the list.

Image

Post Reply