简体   繁体   中英

Robocopy copy files source to destination date range

I am trying to copy the folders and files created between the date range. But this following command looks like copying everything from the source ignoring the date range. What could be wrong?

robocopy c:\source c:\destination /E /dcopy:t /MAXAGE:20100101 /MINAGE:20110101

The /maxage and /minage switches in robocopy seem to refer to the modified date. It is not obvious from the documentation but if you try for yourself you can easily verify that. There are no switches for the creation date so I believe the only solution here is powershell if the difference in performance is acceptable to you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM