TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Karthikeyan Sankar
NA
9
1.6k
c# Extracting Rar File,Facing Error while Decompress a Rar
Mar 13 2018 5:26 AM
It shows a Invalid RarHeader:16 ,I also try in Nunrar,sevenzip extractor,chilkat,It shows the same Error,But it Extracted in Winrar and 7zip softwares
String filename = @"" + textBox8.Text;
string ppath = @"" + System.IO.Path.GetDirectoryName(textBox8.Text) + "\\" + System.IO.Path.GetFileNameWithoutExtension(textBox8.Text);
System.IO.Directory.CreateDirectory(@"" + ppath);
try
{
var archive = SharpCompress.Archives.Rar.RarArchive.Open(filename);
foreach (var entry in archive.Entries.Where(entry => !entry.IsDirectory))
{
entry.WriteToDirectory(ppath, new ExtractionOptions()
{
});
}
}catch(Exception ex)
{
textBox10.Text = Convert.ToString(ex);
}
Reply
Answers (
1
)
Coding for extract RAR file
How to access a sql server on remote machine from local?