How do I decompress a ZIP archive which is protected by a password using Rebex ZIP?

Applies to: Rebex ZIP

asked 12 Oct '10, 17:14

Rebex%20KB's gravatar image

Rebex KB ♦♦
4262258
accept rate: 57%


Following code shows how to do it in C#:

// open a ZIP archive 
using (ZipArchive zip = new ZipArchive(@"C:\archive.zip", ArchiveOpenMode.Open))
{
    // set the Password first 
    zip.Password = "PASSword#123";

    // extract whole ZIP content 
    zip.ExtractAll(@"C:\Data");
}
link

answered 12 Oct '10, 17:15

Rebex%20KB's gravatar image

Rebex KB ♦♦
4262258
accept rate: 57%

Following code shows how to do it in VB.NET

' open a ZIP archive 
Using zip As New ZipArchive("C:\archive.zip", ArchiveOpenMode.Open)
    ' set the Password first 
    zip.Password = "PASSword#123"

    ' extract whole ZIP content 
    zip.ExtractAll("C:\Data")
End Using 
link

answered 12 Oct '10, 17:16

Rebex%20KB's gravatar image

Rebex KB ♦♦
4262258
accept rate: 57%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×26
×4
×4

Asked: 12 Oct '10, 17:14

Seen: 3,104 times

Last updated: 12 Oct '10, 17:16