Using File paths is the first usage pattern for NUnrar. If you have a multi-volume rar file set, currently, you must pass the first rar file.
RarArchive archive = RarArchive.Open(source);
foreach (RarArchiveEntry entry in archive.Entries)
{
	string path = Path.Combine(destination, Path.GetFileName(entry.FilePath));
	entry.ExtractToFile(path);
}


Also a convience method for the most basic case:

RarArchive.ExtractToDirectory(source, destination);

Last edited Aug 3, 2010 at 8:24 PM by adamhathcock, version 6

Comments

No comments yet.