如何从" rar"中提取文件有密码的文件

时间:2017-06-26 16:06:52

标签: c# .net extract rar

如何从" 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);
    }
}

0 个答案:

没有答案