OK, I got it about CopyFiles, will try to implement, thank you.
And the view doesn't refresh even after the script finishes. I don't use any debugger. For now the code is
@var $leftselection = GetSourceFocusPath();
@var $pathparts = PathGetParts($leftselection);
@var $rightdir = StrTrimRight(GetTargetPath(), "\");
@var $leftdrive = StrTrimRight($pathparts[0], ":\");
@var $leftrelpath = StrTrimLeft(StrTrimRight($pathparts[1], "\"), $pathparts[0]);
@var $targetpath = $rightdir ^ $leftdrive ^ $leftrelpath;
CopyFile($targetpath, $leftselection, "");
It works fine, but I see no result in the opposite pane, I have to press F5 after it finishes. Maybe there's some alternate method of copying, that will refresh the view while it works, like GUI Copy command?