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?
Loading

Kirtan PatelRank #292 · 8.6K reputationPosted Oct 12, 2009, 6:52 PM EDT
Step 1
Download SharpZip Lib from below Link
http://sourceforge.net/projects/sharpdevelop/files/SharpZipLib/0.85.5/SharpZipLib_0855_Bin.zip/download
Step 2
Step 3
Step 4(Add this line at top of the code )
using ICSharpCode.SharpZipLib.Zip;
Step 5 (Short and Simple code for Extracting Zip File)
private void button1_Click(object sender, EventArgs e)
{
string ExtractLocation = "";
FolderBrowserDialog fbd = new FolderBrowserDialog();
if (fbd.ShowDialog() == DialogResult.OK)
{
//Path to Extract
ExtractLocation = fbd.SelectedPath;
//Extract Zip File
FastZip fz = new FastZip();
fz.ExtractZip(@"D:\Test.zip",ExtractLocation, "");
MessageBox.Show("Extraction Complete !!!");
}
}
thiago costaRank #6,113 · 276 reputationPosted Oct 12, 2009, 7:06 PM EDT
Thank you ! U saved my day ! I spent HOURS and HOURS and i actually did download that file once, just didn't know what to do. Thank you very much, YOur information helped this noob (me) alot.. Thank you Thank you.
Sincerely
Thiago Costa
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 13, 2009, 12:20 PM EDT
ANUPAM2 reputationPosted Apr 16, 2010, 7:46 PM EDT
Everything is fine but there are 3 dll files in the link shown below. which one to import.
Also if possible please give the code in vb