How to extract .zip files in a way that I can see the status of the items being extracted.
Ex:
static string GetStatus() { return "Extraindo... " + current_arquivo; }
Using the Ionic.Zip OpenSource system Ionic.Zip in the codeplex
How to extract .zip files in a way that I can see the status of the items being extracted.
Ex:
static string GetStatus() { return "Extraindo... " + current_arquivo; }
Using the Ionic.Zip OpenSource system Ionic.Zip in the codeplex
I think you can use it like this:
Inside the ForEach you will have each file ..
private void MyExtract()
{
string zipToUnpack = "C1P3SML.zip";
string unpackDirectory = "Extracted Files";
using (ZipFile zip1 = ZipFile.Read(zipToUnpack))
{
// here, we extract every entry, but we could extract conditionally
// based on entry name, size, date, checkbox status, etc.
foreach (ZipEntry e in zip1)
{
e.Extract(unpackDirectory, ExtractExistingFileAction.OverwriteSilently);
}
}
}
Click More References