using Ionic.Zip;
public void DisZip(string zipFile, string FilePath)
{
try
{
//需要设置编码,否则中文会出现乱码
ReadOptions tion = new ReadOptions();
tion.Encoding = Encoding.Default;
using (ZipFile zip = ZipFile.Read(zipFile, tion))
{
foreach (ZipEntry z in zip)
{
z.Extract(FilePath);
}
}
}
catch (Exception ex)
{
throw ex;
}
}