使XCOPY连接(追加) [英] Getting XCOPY to concatenate (append)

查看:84
本文介绍了使XCOPY连接(追加)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上有可能使XCOPY附加到

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
要附加文件,请为目标指定一个文件,但为源指定多个文件(即,使用通配符或file1 + file2 + file3格式)。

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).

通配符或file1 + file2 + file3格式都不适合我。

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

解决方法(有时):改用COPY。

Workaround (sometimes): Use COPY instead.

推荐答案

如果我做对了,您想将文件合并为一个。对于文本文件,我将使用:

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

这篇关于使XCOPY连接(追加)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆