Code: Select all
UseZipPacker()
Debug CreatePack(0,"c:\temp\test.zip")
Debug AddPackFile(0,"c:\temp\unpacked\Tobbe 2.lic","Tobbe 2.lic")
Debug ClosePack(0)
Debug OpenPack(0,"c:\temp\test.zip")
Debug AddPackFile(0,"c:\temp\unpacked\Tobbe 2.vbs","Tobbe 2.vbs")
ClosePack(0)
After creating a zipfile using createpack(), I sometimes do have the need to add an extra file. For that, I use openpack(), and then addfilepack. At least, untill PB version 5.31. I just downloaded the latest 5.42 version, and then it does not work anymore. I can create a pack, add multiple files to it, close the file. After opening the file (with OpenPack), the AddPackFile function returns a 0, and the file is not added into the zip file.