Name
zip.SetFileComment -- set file comment
Synopsis
zip.SetFileComment(id[, c$, idx])
Function
This function can be used to set the comment for a file inside the zip archive specified by id or for the whole zip archive. If the optional parameter idx is specified, the comment specified by c$ is set for the file at that index. If the optional parameter idx is omitted or set to -1, the comment specified by c$ is set for the whole zip archive.

You can also remove the comment of a file or the whole archive by omitting the c$ argument or setting it to an empty string.

Note that the change to the zip archive isn't done immediately but is postponed until you call zip.CloseArchive().

This function can also operate on directories. See Zip archive basics for details.

Inputs
id
identifier of the zip archive to use
c$
optional: comment to set or empty string to remove a comment
idx
optional: index of file whose comment should be set; if this is omitted or set to -1, the comment is set for the whole archive (defaults to -1)

Show TOC