I used the previous script that was posted, although it still copies the folder more than one time depending on the number of requested files found. Is there any way that the $cmdstr could be taken out of the FOR EACH function? That's what is causing it to copy so many times.