Page 1 of 1
HB_ZIPFILE : lOverwrite flag
Posted: Fri Jan 08, 2010 9:49 pm
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
Re: HB_ZIPFILE : lOverwrite flag
Posted: Fri Jan 08, 2010 10:46 pm
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
Re: HB_ZIPFILE : lOverwrite flag
Posted: Sat Jan 09, 2010 7:50 am
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
Re: HB_ZIPFILE : lOverwrite flag
Posted: Mon Jan 11, 2010 12:39 pm
by Lautaro
Hello,
I don't know, i don't use,
Best Regard,
Lautaro Moreira