Append 4 files to separately named file

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Guest

Append 4 files to separately named file

Post by Guest » Sat Nov 08, 2003 2:14 am

Hi,

How do I take 4 files and append them all together to create a fifth file?

Can I use source2 and destfile to be the same? Thanks.

dw

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sat Nov 08, 2003 2:37 am

The sensible solution you are looking for is AppendFile>.
AppendFile was added with version 7.0.

This example will combine four files into a fifth one.
AppendFile>file1,file2,file5,result
AppendFile>file5,file3,file5,result
AppendFile>file5,file4,file5,result
OR
AppendFile>file1,file2,fileA,result
AppendFile>file3,file4,fileB,result
AppendFile>fileA,fileB,file5,result
As you can see in the first example, lines 2 and 3, the destination file (file5) can be the same as the first file. I never tried to see if it could be the same as the second one.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts