Skip to content
Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

PKZip.RepairZip

Method Signature

 Protected Function RepairZip(ZipFile As FolderItem, RecoveryFile As FolderItem, Optional LogFile As FolderItem) As Boolean

Parameters

Name Type Comment
ZipFile FolderItem The zip archive to repair.
RecoveryFile FolderItem A file or directory to save recovered files in.
LogFile FolderItem Optional. A file to write a recovery log to.

Return value

Returns True if the operation was successful.

Remarks

This method will attempt to recover the uncorrupted portion(s) of a damaged archive. If the RecoveryFile is a directory then the archive is extracted to that directory. Otherwise the archive is extracted to a temporary folder and then re-zipped into RecoveryFile.

Entry-level points of interest denoted by "☜"



Clone this wiki locally