UiPath Documentation
activities
latest
false
Workflow activities

CompressZipFiles

Adds the specified files or folders to a compressed (zip) file archive.

Adds the specified files or folders to a compressed (zip) file archive.

Definition​

Namespace: UiPath.Activities.System.API

Assembly: UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)

Overloads​

CompressZipFiles(IEnumerable<IResource>, String)Adds the specified files or folders to a compressed (zip) file archive.
CompressZipFiles(IEnumerable<IResource>, String, String, ArchiveCompressionLevel, CodePages, Boolean)Adds the specified files or folders to a compressed (zip) file archive, along with advanced configurations of the file.

CompressZipFiles(IEnumerable<IResource>, String)​

Adds the specified files or folders to a compressed (zip) file archive.

ILocalResource CompressZipFiles(
    IEnumerable<IResource> resourcesToArchive,
    string compressedFileName
)
ILocalResource CompressZipFiles(
    IEnumerable<IResource> resourcesToArchive,
    string compressedFileName
)

resourcesToArchive IEnumerable IResource : Specifies the files to be compressed.

compressedFileName String : Name of the compressed file to create.

CompressZipFiles(IEnumerable<IResource>, String, String, ArchiveCompressionLevel, CodePages, Boolean)​

Adds the specified files or folders to a compressed (zip) file archive, along with advanced configurations of the file.

ILocalResource CompressZipFiles(
    IEnumerable<IResource> resourcesToArchive,
    string compressedFileName,
    string password,
    ArchiveCompressionLevel compressionLevel,
    CodePages codePage,
    bool overrideExistingFile
)
ILocalResource CompressZipFiles(
    IEnumerable<IResource> resourcesToArchive,
    string compressedFileName,
    string password,
    ArchiveCompressionLevel compressionLevel,
    CodePages codePage,
    bool overrideExistingFile
)

resourcesToArchive IEnumerable IResource : Specifies the files to be compressed.

compressedFileName String : Name of the compressed file to create.

password String : Require the specified password to open the file.

compressionLevel ArchiveCompressionLevel : How small to compress the file. The higher the compression level the slower it is to compress and decompress.

codePage CodePages : Text encoding for file names. You can use System default or Unicode (UTF-8).

overrideExistingFile Boolean : Replace compressed file if it already exists.

Return value​

ILocalResource

Reference to the created file.

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated