活动
latest
false
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
工作流活动
Last updated 2024年7月19日

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

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

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

ILocalResource CompressZipFiles(
	IEnumerable<IResource> resourcesToArchive,
	string压缩文件名,
	stringpassword,
	ArchiveCompressionLevel 压缩级别,
	CodePages 代码页,
	bool覆盖ExistingFile
)ILocalResource CompressZipFiles( IEnumerable<IResource> resourcesToArchive, string压缩文件名, string密码, 存档压缩级别压缩级别, 代码页代码页, 布尔型覆盖现有文件)
resourcesToArchive IEnumerable IResource
指定要压缩的文件。
compressedFileName 字符串
要创建的压缩文件的名称。
password 字符串
需要输入指定的密码才能打开文件。
compressionLevel ArchiveCompressionLevel
将文件压缩到的大小。压缩级别越高,压缩和解压缩所需的时间就越长。
codePage CodePages
文件名的文本编码。 您可以使用 系统默认值Unicode (UTF-8)
overrideExistingFile 布尔值
如果压缩文件已存在,则替换该文件。

返回值

ILocalResource

对创建的文件的引用。

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
信任与安全
© 2005-2024 UiPath。保留所有权利。