Subj : Re: Merging files... To : Laurent Jumet From : Martin Whittaker Date : Wed Dec 05 2001 04:08 am From: "Martin Whittaker" what's wrong with: for %%e in ( 01 02 03 04 05 06 07 08 09 10 ) do copy/b file%%e.txt bigfile.txt Martin "Laurent Jumet" <1st_NAME.Lst_NAME@advalvas.be> wrote in message news:GED3C03B605@1st_NAME.Lst_NAME.advalvas.be... > Hello ! > I had a big problem I couldn't find out...:-) > > I wanted to merge files, let's say file01.txt file02.txt .....file10.txt > in one only file bigfile.txt > > Best way is > > COPY /B *.txt bigfile.txt > > Providing the destination is not a directory, all files are appended. > > But...:-) > This command doesn't sort the files; they are merged according to their > order on the HardDisk, and 04 comes first, next is 10, next 01, and so on. > > I didn't find a convenient way to make that merging operation; how > would you do yourself? > > Laurent Jumet - Point de Chat, LiŠge, BELGIUM > KeyID: 0xCFAF704C > [Restore address to laurent.jumet for e-mail reply.] --- BBBS/NT v4.01 Flag-2 * Origin: Mach2 Systems (1:342/3) .