[<<]Message[>>]    [<<]Author[>>]    [<<]Subject        [<<]Thread    

Number : 9150 Date : 2004-11-05 Author : John Zeman Subject : Re: Reset Bit on something excluded Size(KB) : 1
--- In xxcopy@yahoogroups.com, "wjaiv" wrote: > > I am using the /M switch to grab files for Incremental Backup, then > the (A)rchive bit gets turned off. > > The problem is that some files are Excluded, and every time my job > runs it keeps hitting those same files with the (A)rchive bit set, > then doesn't actually copy them due to the Exclusion, but the bit > gets left on. > > Is there any way to clear the bit on those files excluded? It seems > that the /AZ bit will disable the actual copy of those files that I > want. > > Thanks. If I understand you correctly, you wish to clear all the source "A" attributes after you do your xxcopy operation, including the A bit of files you didn't want to copy. If so, just add a second xxcopy command line to your batch file (or if from the command line, just type a second one). Below is an example batch file: :: First the normal copy you do xxcopy \SRC\ \DST\ /m /x:"file to exclude" :: Next clear A bits of all source files. xxcopy \SRC\ \DST\ /bu /az If that does not do what you want, you might consider using /BI or the more universal /BU which ignores the A bit and selects files by comparing the size and time stamps of the source files, to those on the destination. One advantage of doing that is by not depending on the A bit to determine which files to copy, you can then use the A bit for other specialized xxcopy tasks (if you some day have a special file management project to tackle). John
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.