Uncompressed your compressed or zip folder using c# programming

January 24, 2014 1 Comments

In this example, we will show that a zip directory,which contains lots of file, converted into uncompressed folder. There are many steps for designing this algorithm, these are

Step-1 : Add 'System.IO.Compression.FileSystem' assembly into your project.
assembly exist into your windows directory

 (~/Windows/Microsoft.NET/assembly/GAC_MSIL/System.IO.Compression.FileSystem/(Your .NET Version)
How to create zip or compressed folder using c# programming

Step-2 : copy this code, paste into your source code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO.Compression;
using System.IO;

namespace compressiondecompress
    public partial class Form1 : Form
        public Form1()

        private void button1_Click(object sender, EventArgs e)
            string source = @"e:\web1";
            string dest = @"e:\web.zip";

            ZipFile.ExtractToDirectory(dest, source);


Code generate the following output

Uncompressed your compressed or zip folder using c# programming

Jacob Lefore

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard. Google

1 comment:

  1. You use rather interesting choices for variable names. "source" and "dest" would seem reversed.