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 PatelPosted Oct 12, 2009, 10:52 PM
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 !!!");
}
}
ANUPAMPosted Apr 16, 2010, 11:46 PM
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
Kirtan PatelPosted Oct 13, 2009, 4:20 PM
thiago costaPosted Oct 12, 2009, 11:06 PM
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