zip_add()

Read(74) Label: zip, add a file,

Description:
 
 Add one or more files to a zip file.

Syntax:
   zip_add(zip,files)

Note:

The function appends one or more files to a zip file.

Parameters:

zip

A zip file object

files  

Name of a to-be-compressed file or FileObject; can be a sequence

Return value:
A Boolean value

Example:

 

A

 

1

=zip_open("D:/z2.zip")

Open a zip file

2

=zip_add(A1,"D:dir1/conn.java")

Add files under D:dir1/conn.java to A1’s zip file

3

>zip_close(A1)

Close a zip file