HB_ZIPFILE : lOverwrite flag

HB_ZIPFILE : lOverwrite flag

Postby wzaf » Fri Jan 08, 2010 9:49 pm

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
wzaf
 
Posts: 38
Joined: Tue Sep 30, 2008 11:16 am

Re: HB_ZIPFILE : lOverwrite flag

Postby Lautaro » Fri Jan 08, 2010 10:46 pm

Hello,

I'm using this :
Code: Select all  Expand view

#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
User avatar
Lautaro
 
Posts: 322
Joined: Fri Oct 07, 2005 2:44 pm
Location: Osorno, Chile

Re: HB_ZIPFILE : lOverwrite flag

Postby wzaf » Sat Jan 09, 2010 7:50 am

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
wzaf
 
Posts: 38
Joined: Tue Sep 30, 2008 11:16 am

Re: HB_ZIPFILE : lOverwrite flag

Postby Lautaro » Mon Jan 11, 2010 12:39 pm

Hello,

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

Best Regard,

Lautaro Moreira
User avatar
Lautaro
 
Posts: 322
Joined: Fri Oct 07, 2005 2:44 pm
Location: Osorno, Chile


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 86 guests