如何从" rar"中提取文件文件(不是" zip")有密码
到目前为止,我使用NUnrar以下代码:
public static void UnZip(string path, string destination, string password)
{
RarArchive archive = RarArchive.Open(path);
//archive.Password = password; (any thing replace this line ?)
foreach (RarArchiveEntry rarFile in archive.Entries)
{
rarFile.WriteToDirectory(destination);
}
}