Subj : Re: Merging files... To : Andrea.Mariani@xspamp17.f403.n334.z From : Laurent Jumet Date : Fri Nov 30 2001 02:06 am From: 1st_NAME.Lst_NAME@advalvas.be (Laurent Jumet) Hello ! Andrea.Mariani@xspamp17.f403.n334.z2.fidonet.org wrote: LJ>> COPY /B *.txt bigfile.txt LJ>> This command doesn't sort the files; they are merged according to LJ>> their order on the HardDisk, and 04 comes first, next is 10, next 01, LJ>> and so on. AM> I'd use the SELECT command. In your case: AM> select /On copy [*.txt] bigfile.txt Finally, my brain remembered the best way to do that...:-) Obviously, I *knew* it, because I made Batch a few years ago for check purposes: === Begin multichk.btm === Text | FOR %sign IN (@con) DO (c:\pgp\pgp %sign %@findfirst[%sign.[csb][oyi][msn]] +batchmode +verbose=0 || goto fail) c:\win3\command c:\4\4dos c:\io c:\dblspace Endtext quit :fail beep echo Attention! PGP n'a pas renvoy‚ l'errorlevel z‚ro... quit === End multichk.btm === So the best way to sort and merge files could be: DIR /B *.bin | FOR %i IN (@CON) DO (TYPE %i >> bigfile.bin) or DIR /B *.bin | FOR %i IN (@CON) DO (copy /B bigfile.bin+%i) Is there a more convenient way than this? 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) .