Navigation: DocScript Reference > DocScript Functions >

ZIP Functions

 

 

 

 

Function

Description

[ZIP.ExtractAllZip](zipfilename)

Returns number of files extracted and extracts the ZIP contents to the same folder as the source ZIP file.

 

Parameter(s)

zipfilename – The name of the ZIP file.

[ZIP.ExtractAllZip](zipfilename, todirectory)

Returns number of files extracted and extracts the ZIP contents to the supplied folder.

 

Parameter(s)

zipfilename – The name of the ZIP file.

todirectory – The path to extract the files to.

[ZIP.ExtractFromZIP](zipfilename, filenametoextract)

Returns the name of the file extracted and extracts the file to the same folder as the source ZIP file. The file will be extracted to the same location as the ZIP file.

 

Parameter(s)

zipfilename – The name of the ZIP file.

filenametoextract – The specifc filename to extract.

[ZIP.ExtractFromZIP](zipfilename, filenametoextract, todirectory)

Returns the name of the file extracted and extracts the file to the supplied folder.

 

Parameter(s)

zipfilename – The name of the ZIP file.

filenametoextract – The specifc filename to extract.

todirectory - The path to extract the files to.

[ZIP.GetZipFiles](zipfilename)

Returns an array of the ZIP file contents.

 

Parameter(s)

zipfilename – The name of the ZIP file.

[ZIP.AddtoZIP](zipfilename, filenametoadd)

Adds a file to a ZIP file.

 

Parameter(s)

zipfilename – The name of the ZIP file.

filenametoadd - Filename to add to the ZIP file.

 

 

 

 

Copyright © 2024 Portford Solutions Group, Inc.