How to Add Comment to a Zip Entry?
Question: How do I go about adding text to the entry.comment field while zipping individual files?
Answer: After appending files via the AppendFiles (or other append methods), you’ll have a zip object with N entries, each of which is a reference to a file that will be zipped when WriteZip is called (or WriteZipAndClose, or WriteExe, etc.).
You can then iterate over the entries, or search for a particular entry, and then update that entry’s Comment property with the comment you want to add. Then when you write the zip, your comment is included…
admin
0
Tags :