none
UnZip Winrar and Zip files using C# code RRS feed

  • Question

  •  I want to UnZip Winrar and Zip files using C# code. If it is possible with any free dlls please help me. I tried with UnRar.dll ,but I am not able to refer that dll to my project.
    Tuesday, December 16, 2008 1:01 PM

Answers

  • Zip files can be compressed and expanded using the built-in Windows support using shell32.dll.  The .NET System.IO.Packaging namespace provides managed zip support.
    • Marked as answer by Zhi-Xin Ye Monday, December 22, 2008 2:49 PM
    Wednesday, December 17, 2008 5:44 AM

All replies

  • RAR is a proprietary algorithm. If you need to support RAR 3.x formats, you need to obtain a non-free license from RARlabs.
    MSMVP VC++
    Tuesday, December 16, 2008 11:22 PM
  • Zip, on the other hand, has several free libraries.

    CSharpZipLib comes immediately to mind. Also, 7-Zip has a managed interface to its APIs, though it's less well documented.

            -Steve
    Wednesday, December 17, 2008 1:15 AM
  • Zip files can be compressed and expanded using the built-in Windows support using shell32.dll.  The .NET System.IO.Packaging namespace provides managed zip support.
    • Marked as answer by Zhi-Xin Ye Monday, December 22, 2008 2:49 PM
    Wednesday, December 17, 2008 5:44 AM