1
Vote

is it support RAR5 format ?

description

Hi,

I wan to use to extract RAR5 file using C#. can you provide support for it ?

comments

Sakeb wrote Apr 29, 2016 at 5:55 AM

string createfolder = @"C:\" + unrar;
                                        Directory.CreateDirectory(@"C:\" + unrar);
                                        string extractPath = @"C:\" + unrar;
                                        string fileName = Path.GetFileName(entry.FilePath);
                                        string rootToFile = Path.GetFullPath(entry.FilePath).Replace(fileName, "");

                                        if (!Directory.Exists(rootToFile))
                                        {
                                            Directory.CreateDirectory(rootToFile);
                                        }

                                        entry.WriteToDirectory(extractPath, ExtractOptions.ExtractFullPath);