How to Copy Files and Archive Attribute
Keywords: archive attribute
Question:
I've changed the xcopy.wbt in order to copy all the files of one directory and all its subdirectories to only one directory. But I can not figure how to deal with the archive attribute.I do not want to change the ATTRIBUTE to A but to change the ARCHIVE ATTRIBUTE BIT, that is, each time I copy files it copies only those that are new or modified, like in DOS XCOPY command with /A (that doesn't change the archive bit) or /M (that changes it).
Answer:
I think you need to simply change the FileCopy to the FileCopyAttr function with the correct parametersFileCopyAttr(source,Dest,@False,"A")to always set the Attibute bit on the copy.
Article ID: W14151Filename: Copy Files and Archive Attribute.txt