Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Make ZIP files from ASP.NET with VB

Reply
Thread Tools

Make ZIP files from ASP.NET with VB

 
 
Marcos G.
Guest
Posts: n/a
 
      09-17-2010
Hi somebody have an example or an idea to how to make ZIP files from a
folder?

Thanks a lot

 
Reply With Quote
 
 
 
 
Mr. Arnold
Guest
Posts: n/a
 
      09-17-2010
On 9/17/2010 2:14 PM, Marcos G. wrote:
> Hi somebody have an example or an idea to how to make ZIP files from a
> folder?
>
> Thanks a lot

<http://www.google.com/#sclient=psy&hl=en&site=&source=hp&q=zip+libaries+ for+net&btnG=Google+Search&aq=f&aqi=m1&aql=&oq=zip +libaries+for+net&gs_rfai=CsSyRB82TTOGbJJG6hASEv7n 2CwAAAKoEBU_QB9Oo&psj=1&fp=207a1c3c62b92b94>
 
Reply With Quote
 
 
 
 
Mark Stevens
Guest
Posts: n/a
 
      09-18-2010
Have a look on codeplex (http://www.codeplex.com) - there are several
zip libraries there.

Can't vouch for them as I have not had the need to use them.

Hope this helps,
Mark


On Fri, 17 Sep 2010 13:14:30 -0500, "Marcos G."
<> wrote:

>Hi somebody have an example or an idea to how to make ZIP files from a
>folder?
>
>Thanks a lot

--
|\ _,,,---,,_ A picture used to be worth a
ZZZzzz /,`.-'`' -. ;-;;, thousand words - then along
|,4- ) )-,_. ,\ ( `'-' came television!
'---''(_/--' `-'\_)

Mark Stevens (mark at thepcsite fullstop co fullstop uk)

This message is provided "as is".
 
Reply With Quote
 
Cubaman
Guest
Posts: n/a
 
      09-20-2010
On Sep 17, 8:14*pm, "Marcos G." <marcosgala...@hotmail.com> wrote:
> Hi somebody have an example or an idea to how to make ZIP files from a
> folder?
>
> Thanks a lot


http://dotnetzip.codeplex.com/

using (ZipFile zip = new ZipFile())
{
// add this map file into the "images" directory in the zip
archive
zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images");
// add the report into a different directory in the archive
zip.AddFile("c:\\Reports\\2008-Regional-Sales-Report.pdf",
"files");
zip.AddFile("ReadMe.txt");
zip.Save("MyZipFile.zip");
}


private void MyExtract()
{
string zipToUnpack = "C1P3SML.zip";
string unpackDirectory = "Extracted Files";
using (ZipFile zip1 = ZipFile.Read(zipToUnpack))
{
// here, we extract every entry, but we could extract
conditionally
// based on entry name, size, date, checkbox status, etc.
foreach (ZipEntry e in zip1)
{
e.Extract(unpackDirectory,
ExtractExistingFileAction.OverwriteSilently);
}
}
}
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to compress a big file into many zip files with Archive::Zip? Bo Yang Perl Misc 9 11-20-2006 11:39 AM
Archive::Zip - how to create huge zip files ? MoshiachNow Perl Misc 2 10-04-2006 09:09 PM
Possibility to add a zip-file to a new zip-file with "add to zip" (right-click) ?? erikkie@casema.nl Computer Support 4 06-26-2006 12:18 AM
java.util.zip.ZipException: error in opening zip file hari_om@hotmail.com Java 0 05-03-2005 04:47 PM
java.util.zip - problem opening some legitimite me zip files Alex Hunsley Java 1 09-16-2004 02:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57