1
我的代码是解压缩只有一个文件需要更改它以解压缩目录中的所有文件。需要解压缩多个.zip文件(应用程序目录下的所有压缩文件)
using (ZipFile zip = ZipFile.Read(file)) //Want to change "file" with directory (for unzip all zip files on that directory)
{
foreach (ZipEntry zipFiles in zip)
{
zipFiles.Extract(currentpath, true); //Also need overwrite silenthly
}
}
这一定是因为你的Zip实用程序。你可以简单地将它转换为foreach。我已经更新了代码。 – vendettamit
Thany you @vendettamit。它现在工作... –