FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour HB_ZIPFILE : lOverwrite flag
Posts: 38
Joined: Tue Sep 30, 2008 11:16 AM
HB_ZIPFILE : lOverwrite flag
Posted: Fri Jan 08, 2010 09: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
Posts: 337
Joined: Fri Oct 07, 2005 02:44 PM
Re: HB_ZIPFILE : lOverwrite flag
Posted: Fri Jan 08, 2010 10:46 PM
Hello,

I'm using this :
Code (fw): Select all Collapse
#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
Hola,

Soy un Contador que por necesidad aprendio a programar y se quedo programando.
Posts: 38
Joined: Tue Sep 30, 2008 11:16 AM
Re: HB_ZIPFILE : lOverwrite flag
Posted: Sat Jan 09, 2010 07: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

Posts: 337
Joined: Fri Oct 07, 2005 02:44 PM
Re: HB_ZIPFILE : lOverwrite flag
Posted: Mon Jan 11, 2010 12:39 PM

Hello,

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

Best Regard,

Lautaro Moreira

Hola,

Soy un Contador que por necesidad aprendio a programar y se quedo programando.

Continue the discussion