7zip说rar没有公开它的压缩算法....

 

没有办法了,最终使用SevenZipSharp.dll进行压缩处理

public void Zip7(string directory, string targetFile)
        {
            SevenZipCompressor.SetLibraryPath(System.Environment.CurrentDirectory+@"\7z.dll");
            SevenZipCompressor szip = new SevenZipCompressor();
            szip.CompressDirectory(directory,targetFile);
        }

 

 

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2021-09-14
  • 2022-01-27
猜你喜欢
  • 2021-11-02
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
相关资源
相似解决方案