wqweto / VszLib

7-zip VB6 Helper
GNU Lesser General Public License v3.0
42 stars 23 forks source link

Create ZIP archive #4

Closed Seniorchef closed 3 years ago

Seniorchef commented 3 years ago

Sample don't work, creates no zip-archive:

With New cVszArchive .AddFile "your_file" '--- store filenames in UTF-8 .Parameter("cu") = "on" .CompressArchive "archive.zip" End With

Are any additional commands needed to create a Zip instead of a 7z?

Regards Jo (seniorchef)

wqweto commented 3 years ago

You can use Init method to specify "c:\path\to\7z.dll" version 9.22 which works well with VszLib.

Check out this forum post.

Seniorchef commented 3 years ago

The version of the dll is the key: The last dll supporting zip is in 7z1604, downloaded from sourceforge. Works like a charm, even with zip-archives >2gb! Thank's a lot, Vladimir!