Hi Glenn,

That seems to work fine when I use the source as a directory, but not as a specific file. Is this how the script was intended?

Secondly, when I supply the command as copyfile2($source,$dest,0,1) is that the right format for not creating root directory, but turning on recursion in which case it will copy the file into all the directories within destination and not the destination, as using this seems to copy to the $dest location only? I tried this using copyfiles and copyfile2 functionality.

Lastly, if I want the source to be several directories deep before the files are located (i.e. c:\temp\start\of\directory\files.doc) and I make the source --s:c:\temp then it will copy the directories to $dest\start\of\directory\files.doc and recursively $dest\directory1\start\...\files.doc, $dest\directory2\start\...\files.doc, etc??

Thanks again for all the help,

Pax