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

UnRAR.Iterator

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

UnRAR.Iterator

Class Declaration

Public Class Iterator

Notes

This class processes a RAR archive. 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.

Methods

Example

  Dim archive As FolderItem ' assume a valid RAR archive
  Dim outputdir As FolderItem ' assume a valid directory
  Dim rar As New UnRAR.Iterator(archive)
  Do Until Not rar.MoveNext(UnRAR.RAR_EXTRACT, outputdir)
    App.YieldToNextThread
  Loop
  rar.Close

See also

Clone this wiki locally