Zipping your files

There is an open source project to use with your projects. It’s easy to use.

dotnetzip.codeplex.com

Let’s zip a folder 🙂

using (ZipFile zip = new ZipFile())
{
    zip.AddDirectory("c:\somedirectory");
    zip.Comment = "This zip was created at " + System.DateTime.Now.ToString("G");
    zip.Save("nameofthezipfile.zip");
}

Happy coding…

Posts created 141

Leave a Reply

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top