[By Peter Bromberg]
The .NET Framework has GzipStream and DeflateStream classes for compression tasks, but they do not support the standard ZIP file / folder FileEntry mechanism to zip a folder with all its files and subfolders.

Fortunately, the ICSharpCode SharpZipLib project does support this, as well as passwords for zip files and compression level.

Here is a utility class I wrote that handles zipping or unzipping a folder with all its subfolders and contained files, using SharpZipLib:
You can click Here to  download the SharpZipLib! 


  1Zip / Unzip folders and files with C#using System;
  2Zip / Unzip folders and files with C#using System.Collections;
  3Zip / Unzip folders and files with C#using System.IO;
  4Zip / Unzip folders and files with C#using ICSharpCode.SharpZipLib.Zip;
  5Zip / Unzip folders and files with C#
  6Zip / Unzip folders and files with C#namespace FolderZipper
  7}

相关文章:

  • 2022-12-23
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-03-01
  • 2022-03-06
相关资源
相似解决方案