Page 1 of 2

Teracopy does not pickup drag and drop inside Xyplorer.

Posted: 09 Sep 2008 05:18
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.

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

Posted: 12 Sep 2008 20:08
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.

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

Posted: 14 Sep 2008 05:24
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%

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

Posted: 15 Sep 2008 04:31
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 :(

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

Posted: 15 Sep 2008 07:05
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.

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

Posted: 15 Sep 2008 07:24
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;

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

Posted: 15 Sep 2008 07:51
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).

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

Posted: 15 Sep 2008 10:17
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");

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

Posted: 15 Sep 2008 18:23
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?

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

Posted: 15 Sep 2008 21:50
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.

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

Posted: 15 Sep 2008 22:13
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.

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

Posted: 15 Sep 2008 22:25
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.

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

Posted: 15 Sep 2008 22:34
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...

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

Posted: 15 Sep 2008 22:49
by Muroph
thanks guys, that really helped.

i use editpad pro, but without syntax coloring.

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

Posted: 15 Sep 2008 22:50
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