且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用robocopy时如何跳过现有和/或相同大小的文件

更新时间:2022-02-13 10:05:09

您要排除相同大小的文件还是未更改的文件?如果是后者,请使用RoboCopy中的/XO开关排除比复制过来的文件更旧的文件.

Do you want to exclude files of the same size, or files that haven't changed? If it's the latter, use the /XO switch in RoboCopy to exclude files that are older than those they're being copied over.

RoboCopy "%%F" %destination% *.srt *.pdf *.mp4 *.jpg /COPYALL /XO /R:0