Clearing added files #29
Replies: 2 comments
-
Hi, In commit 1dc100c I just added setters for Another option to start with an empty archive is by creating a new instance of cheers, |
Beta Was this translation helpful? Give feedback.
-
Hi :) Just before you anwser, I had made a sub to create a new zip file with files to compress (I think this is equivalent to the "Plan B") , something like that :
And I call it with : But your commit is BETTER 👍 I removed CreateZipFile sub and calls for putting .FileCount = 0 and it looks to give the attempted result. Thanks ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Vladimir :)
First, I wish you a happy new year :)
I'm about building a 2 GB limit workaround, by creating multiple zip files, based on filesize addition before compression.
I add in a listbox, each filenames and destination (in the zip archive) and I cumulate their size.
If the next file to add makes the cumulation over than 2GB, I add a separator line ("============="), I reset the counter and continue to add the files.
Then I read the listbox items through a For loop.
I ".AddFile" each files since the line is not a separator.
When the line is a separator, I make the zip archive and I increase the part number (used in the zip filenames).
Here is my code :
I makes well for example, 2 parts :
MyZipFile.zip
MyZipFile part2.zip
But in the MyZipFile part2.zip, I have the files that are already in MyZipFile.zip . I though (when I created the code with For loop) thah CompressArchive command was clearing the pending files once comrpession done, but seems not.
Is there a way to manually clear the ".AddFile" list ?
Or should I create a function where I set a new "m_oZip" New cZipArchive, make the comrpessed file and Set m_oZip = Nothing ?
Thanks for ideas :)
Couin
Beta Was this translation helpful? Give feedback.
All reactions