-
Notifications
You must be signed in to change notification settings - Fork 1
UnRAR.Iterator
UnRAR.Iterator
Public Class Iterator
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.
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
- UnRAR.IteratorEx class.
Wiki home | Project page | Bugs
Text and code examples are Copyright ©2013-21 Andrew Lambert, offered under the CC BY-SA 3.0 License.