Getting XCOPY to concatenate (append)

家住魔仙堡 提交于 2019-12-07 09:08:46

问题


It it actually possible to get XCOPY to append, as per

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true To append files, specify a single file for destination, but multiple files for source (that is, by using wildcards or file1+file2+file3 format).

?

Neither wildcards or file1+file2+file3 format works for me.

Workaround (sometimes): Use COPY instead.


回答1:


If I get it right, you want to merge files into one. For text files I would use:

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


来源:https://stackoverflow.com/questions/25548431/getting-xcopy-to-concatenate-append

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!