In another tip (Checking the Archive Attribute with Robocopy) we saw that we can have Robocopy perform operations based on file attributes. You can also affect its operation based on file sizes and ages.
For file sizes, you'd use the switches /MAX:n and /MIN:n, where "n" specifies the sizes of the files, in bytes, that are to be excluded from the copy. As an example, specifying /MAX:10000 tells Robocopy to exclude from copying any file that is larger than 10,000 bytes.
You can also alter what is copied based on the files' ages. The following command-line switches are used for this:
The only trick to using these options is in understanding what the "n" means. Depending upon its value, "n" can either represent days or a date. If "n" is less than 1900 then "n" is assumed to be a number of days, otherwise "n" is a date of this form: YYYYMMDD.
This tip (13224) applies to Windows 7, 8, and 10.
You may wish to clear your Recently Used Documents list or even have them not remembered in the first place. How you ...
Discover MoreHaving a system repair disk is almost as important as doing regular backups. CDs and DVDs, though, tend to get scratched ...
Discover MoreWhen you have a lot of files in a folder, it is helpful to be able to know how to sort through all the files. Windows 10 ...
Discover MoreFREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2022 Sharon Parq Associates, Inc.
Comments