我正在编写批处理脚本,需要将某个文件夹的内容复制到另一个文件夹。
例如我有文件夹
source/
file1.txt
file2.txt
file3.txt
我在目标文件夹中有文件。如何将 source
的内容复制到 destination
中,以便最终目标看起来像这样
destination/
existing1.txt
existing2.txt
file1.txt
file2.txt
file3.txt
我尝试了 xcopy 但不太正确。
最佳答案
只需使用通配符:
xcopy source\*.* destination\*.*
关于windows - 复制文件夹内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5213108/