Getting XCOPY for concatenation (append)

Actually it is possible to get XCOPY to add, according to

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true To add files, specify one file for destination, but multiple files for source (then is with wildcards or files1 + file2 + file format3).

?

No wildcards or the file1 + file2 + file3 format works for me.

Workaround (sometimes): Use COPY instead.

+3


source to share


1 answer


If I understand you want to combine the files into one. For text files, I would use:



FOR /R %%f in (file*) DO TYPE %%f >> bigfile

      

+3


source







All Articles