public static string ExtractToTempDir(string archive, string entryName) { string tempFolder = FolderUtility.CreateTempFolder(); string path = Path.Combine(tempFolder, Path.GetFileName(entryName)); using (var zf = new ZipFile(archive)) { ZipEntry ze = zf.Find(entryName); if (ze == null) return null; zf.Extract(ze, path, true); } return path; }