Here's an example:
Run this in CodeBox:
FileCopy,"D:\TestInput\testfile.*","D:\TestOutput"
with the content of D:\TestInput being:
d: cd TestInput dir /s * Volume in drive D is WORK Volume Serial Number is 40C5-6EEB Directory of D:\TestInput 10/15/2009 01:44 PM <DIR> . 10/15/2009 01:44 PM <DIR> .. 10/15/2009 01:30 PM <DIR> junk 10/15/2009 01:29 PM 0 testfile.txt 1 File(s) 0 bytes Directory of D:\TestInput\junk 10/15/2009 01:30 PM <DIR> . 10/15/2009 01:30 PM <DIR> .. 10/15/2009 01:30 PM <DIR> junk 10/15/2009 01:29 PM 0 testfile.txt 1 File(s) 0 bytes Directory of D:\TestInput\junk\junk 10/15/2009 01:30 PM <DIR> . 10/15/2009 01:30 PM <DIR> .. 10/15/2009 01:29 PM 0 testfile.txt 1 File(s) 0 bytes Total Files Listed: 3 File(s) 0 bytes 8 Dir(s) 1,742,062,592 bytes free
You will get the output (with both 77RC2 and 78SP2):
d: cd TestOutput dir /s * Volume in drive D is WORK Volume Serial Number is 40C5-6EEB Directory of D:\TestOutput 10/15/2009 01:44 PM <DIR> . 10/15/2009 01:44 PM <DIR> .. 10/15/2009 01:43 PM <DIR> junk 10/15/2009 01:29 PM 0 testfile.txt 1 File(s) 0 bytes Directory of D:\TestOutput\junk 10/15/2009 01:43 PM <DIR> . 10/15/2009 01:43 PM <DIR> .. 10/15/2009 01:43 PM <DIR> junk 10/15/2009 01:29 PM 0 testfile.txt 1 File(s) 0 bytes Directory of D:\TestOutput\junk\junk 10/15/2009 01:43 PM <DIR> . 10/15/2009 01:43 PM <DIR> .. 10/15/2009 01:29 PM 0 testfile.txt 1 File(s) 0 bytes Total Files Listed: 3 File(s) 0 bytes 8 Dir(s) 1,742,061,568 bytes free
whereas, I would have expected to see ONLY ONE (testfile.txt) file in D:\TestOutput.
FileCopy seems to be copying all files that match the filename within subdirectories also - seems to be something to do with the use of '*'.
Thanks.