只有在批复制新文件 [英] Copy new files only in batch

查看:81
本文介绍了只有在批复制新文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看过了复制和XCOPY批处理命令。他们两个似乎不支持复制新文件只考虑文件日期和时间 - 名仅比较选项。请指教。

I have looked over the copy and xcopy batch commands. Both of them do not seem to support "copy new files only regardless file date time - name comparing only" option. Please advise.

推荐答案

看一看 ROBOCOPY 。用下面的开关调用它会递归从文件复制 source_dir 尚不在 destination_dir 存在:

Have a look at ROBOCOPY. Invoking it with the following switches will recursively copy the files from source_dir that do not yet exist in destination_dir:

robocopy source_dir destination_dir /s /xc /xn /xo

阿尔斯看到 ROBOCOPY手册,在开关的说明。

这篇关于只有在批复制新文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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