>>First of all, add CHR(13)+CHR(10), e.g.
>>#define CRLF chr(13)+chr(10)
>> cConCatString = m.cConCatString + CRLF+FILETOSTR("c:\BW\" + aBWFiles[i,1])
>>
>>Secondly, the code looks fine and should work, unless you have huge files. >Try to examine the files first...
>
>Hi Nadya:
>
>I got it to work. The code was looking for .dat files while the filed to be copied is an SDF type. Once I change the file name to read "Process*.*", the code found the files and copied them.
>
>The only remaining problem is that the file being copied to should also be an SDF type file. How do I accomplish this? Thank you.
What's wrong with the current approach? Did you examine the content of the new file? What's wrong with it?
If it's not broken, fix it until it is.
My Blog