Hi,
I am trying to write the code for unzip. I got problem in coding.
here is my code:
private void button1_Click(object sender, EventArgs e)
{
DirectoryInfo ZipdirInfo = new DirectoryInfo(@"C:\testxml.zip");
foreach (FileInfo zipFilesInfo in ZipdirInfo.GetFiles("*.xml"))
{
listBox1.Items.Add(zipFilesInfo);
}
}
Thanks in advance
Loading
Pramod Kumar NandagiriPosted Feb 17, 2012, 12:18 PM
using Ionic.Zip;
using (ZipFile zip = ZipFile.Read("E:\\test.zip"))
{
foreach (var items in zip.EntryFileNames)
{
ListBox1.Items.Add(items.ToString());
zip.ExtractAll("E:\\New", ExtractExistingFileAction.OverwriteSilently);
}
}
jit sunPosted Feb 20, 2012, 5:23 AM
It works now!!
Pramod Kumar NandagiriPosted Feb 20, 2012, 5:10 AM
I you have to download in from the net, it is a open source dll. you can download it form the below link
http://www.4shared.com/get/Ja6RqXLe/ioniczip.html
Please don't forget to mark the thread as accepted answer if it helps you...
jit sunPosted Feb 20, 2012, 4:54 AM
Thank you very much.
Is Ionic.Zip.dll is available in visual studio 2010??
I just looked into ADD reference.
I did nt fins it in my library.
Jit