943,793 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 14301
  • C# RSS
Mar 17th, 2009
0

How to extract the rar or zip file using C#

Expand Post »
hi,

i am doing a project using C#. i am new to this area.

the task is to extract the zip or rar file using C#.

in my windows form have a text box and button in the form. i will give the zip or rar file. when i click that button. it must automatically extract the file and shows contents of that file in to the other form or file..

i don't know how to extract that zip or rar file using C#.

if u know please share your idea.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
thegreatkk is offline Offline
19 posts
since Feb 2009
Mar 17th, 2009
0

Re: How to extract the rar or zip file using C#

In the past I have used SharpZipLib

http://www.icsharpcode.net/OpenSource/SharpZipLib/
Reputation Points: 133
Solved Threads: 141
Veteran Poster
dickersonka is offline Offline
1,162 posts
since Aug 2008
Mar 17th, 2009
1

Re: How to extract the rar or zip file using C#

You need to use

System.IO.Compression namespace.
Reputation Points: 22
Solved Threads: 14
Junior Poster in Training
jbrock31 is offline Offline
73 posts
since Oct 2008
Mar 19th, 2009
1

Re: How to extract the rar or zip file using C#

Click to Expand / Collapse  Quote originally posted by jbrock31 ...
You need to use

System.IO.Compression namespace.
...But that only handles ZIP files. RAR files will have to be done with something else, like this DLL:

http://www.example-code.com/csharp/rar_unrar.asp

This won't create RAR files, but it will list and extract.
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Mar 19th, 2009
0

Re: How to extract the rar or zip file using C#

Thank you boss.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
thegreatkk is offline Offline
19 posts
since Feb 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: How to convert ISingleResult<..> to List? in WCF?
Next Thread in C# Forum Timeline: This SqlTransaction has completed; it is no longer usable





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC