Here is the script code, to help those using the forum to find scripting techniques. You do not need to use or understand any of this if you just wish to use the button.
The button/script will copy the files you select on the source side into each of the folders you select on the destination side.
If you want to copy things to a fixed path, there's a much easier way to do that. Assuming that's what you want, what are the path(s) you want to copy things to?
Moving into multiple destinations that way would not work. Once the files are moved into the first destination, they no longer exist to move into the second...
That would need to be done via a copy then a delete.
Changing the script to this should do that:
function OnClick(clickData)
{
var source = clickData.func.sourcetab;
var dest = clickData.func.desttab;
var cmd = clickData.func.command;
cmd.deselect = false; // Leave source files selected.
if (typeof dest != "object"
|| dest.selected_dirs.count == 0
|| source.selected.count == 0)
{
clickData.func.dlg.Request("Need selections on both sides.","OK");
return;
}
for (var e = new Enumerator(dest.selected_dirs); !e.atEnd(); e.moveNext())
{
cmd.AddLine("Copy TO=\"" + e.item().RealPath + "\"");
}
cmd.AddLine("Delete");
cmd.Run();
}
Note that this is untested, so try it on some test source and destination folders first before trusting it to real data!
The only change is the cmd.AddLine("Delete"); line.