Subj : Re: Merging files... To : Steve From : Martin Whittaker Date : Wed Dec 05 2001 06:12 pm From: "Martin Whittaker" Oh right...DUH! I guess I slept through that one...sorry. The correct FOR(s) are good, simple solutions. Thanks "E. S. (Steve) Fabian" wrote in message news:3C0E1318.C188E214@BellAtlantic.net... > Martin Whittaker wrote: > > > > 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 > > Minor syntax problem: it overwrites the target multiple times > > for %e in ( 01 02 03 04 05 06 07 08 09 10 ) copy/b > bigfile.txt+file%e.txt > > would operate correctly. > > You could use > > FOR /L %N IN ( 1 , 1 , 10 ) copy/b bigfile.txt+file%@format[-02,%e].txt > -- > E. S. "Steve" Fabian ESFabian@BellAtlantic.net > POB 1540, Cherry Hill, NJ 08034 Telephone: 856-354-1752 > EMPIRE Consultants, Inc. Director, Software Development > ------------------------------------------------------------------- --- BBBS/NT v4.01 Flag-2 * Origin: Mach2 Systems (1:342/3) .