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

Number : 3437 Date : 2003-01-04 Author : Kan Yabumoto Subject : Re: directory compare Size(KB) : 3
Neil: You are basically at the right track. As to the time-zone adjustments, the /TS- and /TD+ (or /TS+ and /TD-) are to select the same files where the difference is that /TD+ would throw away the adjustment and the newly saved file will inherit the unadjusted source file whereas the /TS- would keep the adjusted value. Anyway, to select those pair of files that are exactly one hour apart and you want to treat them differently, I suggest that you create a reference directory (either with a full set of actual files or to save time, use a "skeleton" directory where only the directory info is kept and saved as zero-length file). Such a reference directory will be handy from time to time to be used as a reference (not very straightforward but can be used). One way (out of may possible ways) to create such a directory is batch1.bat -------------------------------------------------------------- xxcopy c:\charlie\ /az/s // clear archive bit from all files xxoopy c:\charlie\ d:\delta\ /aa/bs/s/h/td+1 // set A-bit xxcopy c:\charlie\ /ldzl/s/h/a // list files with A-bit xxcopy c:\charlie\ /ldzl/s/h/axa // list files without A-bit --------------------------------------------------------------- Here, the 2nd line is the one which select files which are identical between in the source and destination directories if you make the one-hour timestamp adjustment. The /BS checks that both the filesize *AND* timestamp (after the adjustment) are exactly the same between the one in the source and the one in the destination. Note here, the /BS is exact opposite to the /BI. The /BS selects (and /AA will put the A-bit to the source file) whereas /BI skips the files that are identical. Both methods are useful. The 3rd and 4th lines above show exactly opposite sets of files (/A is equivalent to /ATA --- selects file with A-bit which is opposite of /AXA --- selects files without A-bit) If you want to remove these files (the one with exactly one hour timestamp difference with matching filesize), just do the following command xxcopy c:\charlie\ d:\delta2\ /s/h/a Once you set the A-bit to the exact file set you can then do whatever you want with the /A switch. Kan Yabumoto ================================================================ At 2003-01-03 14:11, you wrote: >Hello, Can someone please help... > >I have two deeply nested directories C:\Charlie and D:\Delta which I >want to compare and I think XXcopy can do the job. > >I'm having problems understanding the section in XXCOPY TECHNICAL >BULLETIN #01 entitled "Summary XXCOPY switches that check two >directories:" > >95%+ of the files in the directories are identical (size&time) with a >possible exception of a time difference of EXACTLY one hour (I moved >between timezones or copied in summertime or something). > >Specifically what I want to know is the differences between the two >directories, i.e. >1) files which exist on (either) one but not the other >and >2) files which have a different size or timestamp (unless it is >different by exactly one hour - PLUS or MINUS) > >I get the impression that multiple variations on something >like "xxcopy /L /S /BI /TD+1 C:\Charlie D:\Delta" >would do the trick but it seems to be a bit more involved. > >Can someone please tell me which incantation(s) of xxcopy will give >me what I want. > >Thanks for any help given. > >Neil. > > > > > >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.