by Rde (54 Submissions)
Category: Files/File Controls/Input/Output
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
This module is a wrapper for the unrar.dll freely available from www.rarlab.com
Enables unpacking a specified file from a RAR archive, both to disk as a file
or only to memory (string variable) as the file text.
There are a couple of other posts on RAR archives, and extracting a single file
from an archive has not been demonstrated, and I needed this functionality for
my ZipSearch project.
Thought others might be interested in this functionality - reuse as you see fit.
Note that the declares for the library functions are named unrar and unrar3
depending on the version you have. Get a free copy of this DLL from:
www.rarlab.com - Extras
www.rarlab.com/rar_add.htm - UnRAR.dll
ftp://ftp.rarlab.com/rar/UnRARDLL.exe
Happy coding :)