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

Number : 3361 Date : 2002-12-20 Author : Kan Yabumoto Subject : Re: Variation on /DA Size(KB) : 2
Let me answer Chuck's first question. You are correct in your interpretation of our documentatino. XXCOPY cannot allow you to specify the date-related specifier in two different way, 1) /DA 2) /DA: In a combination of the above two, the last one will overshadow the previous one. So, you can choose only one type of "newer" selection. On the other hand, you may combine the other type of date comparison using the /DB. In that case, both will be used at the sme time 1) /DAxx 2) /DBxx The two are combined using "OR" or "AND" depending on the relationship of the two values. =========================================================== As to Gerry's comment, Sorry that the documentation on this is not very clear. In XXCOPY's filetime comparison feature, all /DAxx switches are put into one basket, and all /DBxx switches are put into one basket. That is, when you put many similar switches like /DA /DA#10 /DA#30 then the last one will prevail. Now, with regard to the /BN and /Bo switches, they are indeed handled as a synonym to the /DA and /DB switches internally except for the other grouping consideration where /BN and /Bo are grouped into the mutually-exclusive /Bxxx group where only one of the /Bxxx will prevail. That is, /BN is equivalent to /B0/DA and /Bo is equivalent to /B0/DB. In other words, /BN cancels any previous /Bxx switches as well as any previous /DAxx switch. Therefore, /DA#30 /BN is equivalent to plain /BN not as Garry (and others) wished XXCOPY to behave. Although we could have implemented the /DA and /BN to be distinct, we just did not handle it that way. While the two completely independent settings for them may offer a little more flexibility in this case, we chose not to do so partly because it will be slightly more programming and also somewhat more complicated to explain. The fact this issue has not been raised before supports that our design decision is not all that bad. Kan Yabumoto ====================================================== At 2002-12-19 18:31, you wrote: >Use both the /DA and /BN switches. >Xxcopy src dst /da#30 /bn > >Garry > >--- In xxcopy@yahoogroups.com, "chuckmg2 " > wrote: > > I'm a newbie to xxcopy. If possible, how does one achieve the > > following: copy src to dest if a)src is *later* than date1 >AND > > b)*newer* than dest. Have read XXTB#17 and understand how to do > > either a or b, but not the AND. > > > > Chuck
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.