HB_ZIPFILE : lOverwrite flag

Post Reply
wzaf
Posts: 38
Joined: Tue Sep 30, 2008 11:16 am

HB_ZIPFILE : lOverwrite flag

Post by wzaf »

I tried to use HB_ZIPFILE with lOverwirte flag = .F. to add files to an existing archive, but i get always a new zip archive .
Here the sintax I' ve used :
HB_ZIPFILE( "c:\zfile.zip", aFiles, 9, nil, .F. ) .
I forgot something ?

best regard
Walter Zafferami
User avatar
Lautaro
Posts: 322
Joined: Fri Oct 07, 2005 2:44 pm
Location: Osorno, Chile
Contact:

Re: HB_ZIPFILE : lOverwrite flag

Post by Lautaro »

Hello,

I'm using this :

Code: Select all

#include "hbmzip.ch"
...
...
local nhzipfile

nhzipfile := HB_ZipOpen( "zipfile.zip", HB_ZIP_OPEN_ADDINZIP )
for nveces = 1 to len ( afiles )
   HB_ZipStoreFile( nhzipfile,afiles[nveces])
next nveces
hb_zipclose(nhzipfile)

 
don't forgot including hbmzip.lib in your link script.

Best Regards,

Lautaro Moreira
Osorno
Chile
wzaf
Posts: 38
Joined: Tue Sep 30, 2008 11:16 am

Re: HB_ZIPFILE : lOverwrite flag

Post by wzaf »

Tank you , Lautaro, is a good idea.

But this means that the function HB_ZIPFILE() doesn't work with lOverwrite flag = .F. ?


Best regards
Walter Zafferami
User avatar
Lautaro
Posts: 322
Joined: Fri Oct 07, 2005 2:44 pm
Location: Osorno, Chile
Contact:

Re: HB_ZIPFILE : lOverwrite flag

Post by Lautaro »

Hello,

I don't know, i don't use,

Best Regard,

Lautaro Moreira
Post Reply