Robocopy can check and set file attributes as part of its copying procedure. (Understanding and Using File Attributes is covered under another tip.) If you want Robocopy to only copy those files that have the Archive attribute set it's a simple matter of specifying the /A switch. So let's say you want to copy the files from C:\Temp1 to C:\Temp3, but you only want to copy those files whose Archive attribute is set. The command to use would be:
C:\> ROBOCOPY C:\Temp1 C:\Temp3 /A
If you want the Archive attribute to be reset after the file is copied, use the /M switch. This will copy only the files with the Archive attribute set and then reset the attribute after the copy is performed:
C:\> ROBOCOPY C:\Temp1 C:\Temp3 /M
This tip (13199) applies to Windows 7 and 8.
The Windows page file is crucial to optimal system performance. This tip shows you how to control its size.
Discover MoreYou can fine-tune Indexed Searches by adding file types to the search index. This tip tells you how.
Discover MoreYou may wish to clear your Recently Used Documents list or even have them not remembered in the first place. How you ...
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 © 2021 Sharon Parq Associates, Inc.
Comments