>I have 3 text files that I want to merge into a new file from within Visual Foxpro. I can do this with the DOS "COPY" command but the long file names is a problem. Is there a windows based copy that I can use to acomplish the same result? Unfortunately the foxpro "COPY" commands only handles one file.
>
>Thanks
try
String1 = FileToStr("File1.txt")
String2 = FileToStr("File2.txt")
String3 = FileToStr("File3.txt")
StrToFile(String1+chr(13)+String2+chr(13)+String3, "NewTextFile.txt")
hope this helps.