Subj : Re: Merging files... To : Martin Whittaker From : Steve Date : Wed Dec 05 2001 04:30 am From: "E. S. (Steve) Fabian" 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) .