Oh wow, it works perfectly, thanks!
If you need to dynamically create directories to copy to, use something like this:
(I've never had to do this, so there might be a function for it built into Blockland.)
function createDirectory(%dir)
{
if(getSubStr(%dir,strLen(%dir) - 1,1) !$= "/")
%dir = %dir @ "/";
while(true)
{
%num++;
%path = %dir @ %num @ ".tmp";
if(!isFile(%path))
break;
}
%file = new FileObject();
%file.openForWrite(%path);
%file.close();
%file.delete();
fileDelete(%path);
}