473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to unzip a .zip file (created with winzip) in C#-URGENT

Hello

Can someone tell me how I can unzip a .zip file in C#. The zip file is
already there and I just need to unzip..not zip and unzip.

--
Thanks,
SDRoy
Apr 14 '06 #1
3 5757
SDRoy <SD***@discussions.microsoft.com> wrote:
Can someone tell me how I can unzip a .zip file in C#. The zip file is
already there and I just need to unzip..not zip and unzip.


Use SharpZipLib:

http://www.icsharpcode.net/OpenSource/SharpZipLib/

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Apr 14 '06 #2
It's cool. Thanks. BTW is there a licensing issue if I need to use it on
production ? Or it's an open source and anyone can use it for free ?
--
Thanks,
SDRoy
"SDRoy" wrote:
Hello

Can someone tell me how I can unzip a .zip file in C#. The zip file is
already there and I just need to unzip..not zip and unzip.

--
Thanks,
SDRoy

Apr 14 '06 #3
SDRoy <SD***@discussions.microsoft.com> wrote:
It's cool. Thanks. BTW is there a licensing issue if I need to use it on
production ? Or it's an open source and anyone can use it for free ?


No issues.

From the web page:

<quote>
License

The library is released under the GPL with the following exception:

Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.

As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from or
based on this library. If you modify this library, you may extend this
exception to your version of the library, but you are not obligated to
do so. If you do not wish to do so, delete this exception statement
from your version.

Note The exception is changed to reflect the latest GNU Classpath
exception. Older versions of #ziplib did have another exception, but
the new one is clearer and it doesn't break compatibility with the old
one.

Bottom line In plain English this means you can use this library in
commercial closed-source applications.
</quote>

Note the last bit.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Apr 14 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Chris | last post by:
Hi Where can I find info on unzipping file with VB.NET. I need to unzip a winzip file with my application Thanks
3
by: yabba | last post by:
anyone know of a good zip/unzip dll i can run from asp? I intend to use it to pack/unpack upload and download files to save time. TIA
3
by: Jim | last post by:
I have a user who works remotely who just does not understand the concept of zipping and unzipping files no matter how many times I explain it. I need to create something for her that will do the...
2
by: Katie | last post by:
So I am Microsoft Access User, learning as I go. I need to send a database back to its author for some adjustments. For security and due to the size of this database I need to send it as a winzip...
24
by: Joseph Geretz | last post by:
Up to this point, our application has been using Windows File Sharing to transfer files to and from our application document repository. This approach does not lend itself toward a secure...
7
by: italo | last post by:
Greetings. There is a way to zip and unzip files. its like a Winzip or WinRar or PowerArchiver.. but i need to .NET ZIP and unZIP these files. ex. <name_of_file>.zip i dont know if theses...
7
by: D & J G | last post by:
Is there a way to instruct Windows file-handling - 'Opens with:' - from within VB6? I want to ensure that files with the .rtf (rich text) extension always go to Word Pad, no matter which future...
4
by: DataSmash | last post by:
I need to unzip all zip file(s) in the current directory into their own subdirectories. The zip file name(s) always start with the string "usa" and end with ".zip". The code below will make the...
3
by: DaveO | last post by:
My apologies for individually posting this to multiple newsgroups - my ISP won't allow multiple posts. I'm not a C programmer, so I'm looking for someone to modify some UnZip code for a...
5
by: =?Utf-8?B?anVsaW8=?= | last post by:
Hi, I write a program to unzip a Tar file generated on a Unix environment file using SharpZipLib, but returns a error "Header checksum is invalid" when execute the program. This error appears...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.