Create a Zip File from a folder

sathya.cs

Active member
Joined
May 24, 2009
Messages
31
Programming Experience
Beginner
I m creating an encryption based application using RijndaelManaged.How to encrypt a folder and prodice a single output file like winrar or winzip?
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,383
Location
Norway
Programming Experience
10+
For example use this zip library DotNetZip Library
Zipping a folder with password encryption:
Code:
Using zip As New Ionic.Zip.ZipFile("C:\dir1.zip")
    zip.Password = "test"
    zip.AddDirectory("C:\dir1")
    zip.Save()
End Using
 
Top Bottom