Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

UnRAR.IteratorEx

Andrew Lambert edited this page Nov 26, 2022 · 9 revisions

UnRAR.IteratorEx

Class Declaration

Public Class IteratorEx
Inherits UnRAR.Iterator

Notes

This class processes a RAR archive just like the Iterator class, but with additional features such as UTF-16 file names, reading encrypted headers, in-memory decompression, and more robust multi-volume archives. To create a new instance pass the RAR archive as a FolderItem to the Constructor method. The archive is processed one entry at a time, from the first entry to the last.

Create a new instance, and access the CurrentItem method to read the headers of the current item in the archive.

Call the MoveNext method to process the current item and then advance the selection to the next item in the archive. MoveNext will return True until an error occurs; note that this includes the end of the archive, so check LastError for details.

Only one instance can have a given archive open at any given moment.

Event definitions

Methods

Example

  Dim archive As FolderItem ' assume a valid RAR archive
  Dim outputdir As FolderItem ' assume a valid directory
  Dim rar As New UnRAR.IteratorEx(archive)
  Do
    If Not rar.MoveNext(UnRAR.RAR_EXTRACT, outputdir) Then Exit Do
  Loop
  rar.Close

See also

Clone this wiki locally