Code: Select all
//Files to be moved must be on inactive pane, selected.
//The active pane is the target folder.
//target folder path:
$targets = "<curpath>", "|";
//get selected item(s) on inactive pane:
focus "pi";
$source = getinfo("SelectedItemsPathNames", "|"); //"<curitem>";
//act on target folder:
$Loop=1;
while(1){
$target = gettoken($targets, $Loop, "|");
if ($target==""){break;}
//copy source to current selected target:
//copyto location, source
moveto $target, $source;
incr $Loop;
}
focus "pi";
// goto gettoken($targets, 1, "|");
status "Files moved. Thanks!"
XYplorer Beta Club