Robocopy to copy only new folders and files
Posted
by
Valery Shampal
on Super User
See other posts from Super User
or by Valery Shampal
Published on 2013-11-08T09:22:11Z
Indexed on
2013/11/08
10:03 UTC
Read the original article
Hit count: 218
command-line
A task:
To find all new files and subfolders under some root folder (let us say Documents) and to copy them to other disk (j: in this case)
Command line used:
robocopy c:\users\valery\documents j:\robocopy /XO /E /MAXAGE:20131030 /XD
Result: A full folders tree created. Only new files copyed, as supposed. It's good
A point is, that I do not want to create all subfolders on a target disk, if there are no new files in them. Results are exeptable, but there is a lot of work to go through all folders and to find new files, as well, as to understand, what subfolders are a new ones
Regards, Valery
© Super User or respective owner