活动
最新
False
横幅背景图像
工作流活动
上次更新日期 2024年4月22日

压缩 Zip 文件

将指定的文件或文件夹添加到压缩 (zip) 文件存档中。

定义

命名空间: UiPath Activities.System.API

程序集: UiPath.System.Activities.Api(在 UiPath.System.Activities.Api.dll 中)

重载

  
CompressZipFiles(IEnumerable<IResource>, String)将指定的文件或文件夹添加到压缩 (zip) 文件存档中。
CompressZipFiles(IEnumerable<IResource>, String, String, ArchiveCompressionLevel, CodePages, Boolean)将指定的文件或文件夹以及文件的高级配置添加到压缩 (zip) 文件存档中。

CompressZipFiles(IEnumerable<IResource>, String)

将指定的文件或文件夹添加到压缩 (zip) 文件存档中。

ILocalResource CompressZipFiles(
	IEnumerable<IResource> resourcesToArchive,
	string compressedFileName
)ILocalResource CompressZipFiles(
	IEnumerable<IResource> resourcesToArchive,
	string compressedFileName
)
resourcesToArchive IEnumerable IResource
指定要压缩的文件。
compressedFileName 字符串
要创建的压缩文件的名称。

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

将指定的文件或文件夹以及文件的高级配置添加到压缩 (zip) 文件存档中。

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
指定要压缩的文件。
compressedFileName 字符串
要创建的压缩文件的名称。
password 字符串
需要输入指定的密码才能打开文件。
compressionLevel ArchiveCompressionLevel
将文件压缩到的大小。压缩级别越高,压缩和解压缩所需的时间就越长。
codePage CodePages
文件名的文本编码。 您可以使用 系统默认值Unicode (UTF-8)
overrideExistingFile 布尔值
如果压缩文件已存在,则替换该文件。

返回值

ILocalResource

对创建的文件的引用。

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.