4
Answers

How To Unzip File using CSharp? With the Click of a Button?

Ask a question
thiago costa

thiago costa

14y
8.2k
1
Guys, I have visual c# express...

Here is my situation.

I want to click on Button one, and extract the existing update.zip file into a desired folder.


This is what I have.

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;

 private void button1_Click(object sender, EventArgs e)
        {
             //unzip update.zip to c:\pictures

              ?????????????????????????????????????
        }


See? most google searches leaded me to... seamed to be Programs to combine with Visual C# express, like ziplib, etc etc..

I read all those forums, and Nothing worked >< ... am I putting the chuncks of codes in the wrong places? I tryed so much, for so many hours. Nothign worked :( .... Any sujestions?


Answers (4)