Robocopy - 比较文件的修改日期? [英] Robocopy - Compare modified dates of files?

查看:43
本文介绍了Robocopy - 比较文件的修改日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试创建这个脚本,它基本上反映了两组文件夹及其内容(包括子文件夹),但只复制比现有文件更新的文件.我尝试通过编写 vbscript 来做到这一点,但结果是我手动需要扫描每个子文件夹,然后扫描它的内容.然后是该子文件夹的内容,依此类推.

I've been trying to create this script that basically mirrors two sets of folders and it's content (including subfolders), but only copy files that are newer than the ones that already exist. I tried doing this by writing a vbscript, but it turns out that I manualle need to scan each subfolder and then it's content. And then that subfolder's content as well and so on and so forth.

所以我想知道是否有人知道这是否可以通过 Robocopy 完成?

So I'm wondering if anyone knows if this can be done with Robocopy?

推荐答案

ROBOCOPY %SOURCE_DIR% %TARGET_DIR% */MIR

ROBOCOPY %SOURCE_DIR% %TARGET_DIR% */MIR/XO

这篇关于Robocopy - 比较文件的修改日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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