[delphizip] Re: For Your Info AddOptions := AddOptions + [AddResetArchive]+[AddArchiveOnly]; // ClrBit + ONLY DO ARCHIVE ON FILES BIT SET

  • From: Alistair George <bigal@xxxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Thu, 28 Nov 2002 13:30:40 +1300

Hello,
Regarding the previous, it is best left as is, and perhaps the helpfile changed.
EG
      2: AddOptions := AddOptions + [AddResetArchive]; // Full Copy, ClrBit
      3: AddOptions := AddOptions + [AddResetArchive] + [AddArchiveOnly]; // 
CopyBitSet&Clear

is fine. the helpfile might be changed thus:
AddResetArchive  Clears  the  archive bit after a successful Zip Add on all
files selected. By including AddArchiveOnly (eg [AddResetArchive] +
[AddArchiveOnly]) will only Zip files with bit set, then clear the bit.



Wednesday, November 27, 2002, 9:51:36 AM, you wrote:

AG> Hello Russell,

AG> The helpfile says:
AG> AddResetArchive  Clears  the  archive bit after a successful Zip Add 
action.It?s
AG> not necessary to set AddArchiveOnly too.

AG> The above is confusing because one would expect AddResetArchive only adds 
files
AG> with bit set, not cleared whereas it adds all files in the backup set 
regardless
AG> and clears the bits.

AG> It should actually do what the helpfile says IMHO
AG> Cheers,
AG> Alistair+




-- 
Regards,
 Alistair+


Other related posts: