How to extract the rar or zip file using C#

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Feb 2009
Posts: 19
Reputation: thegreatkk is an unknown quantity at this point 
Solved Threads: 0
thegreatkk thegreatkk is offline Offline
Newbie Poster

How to extract the rar or zip file using C#

 
0
  #1
Mar 17th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,160
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

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

 
0
  #2
Mar 17th, 2009
In the past I have used SharpZipLib

http://www.icsharpcode.net/OpenSource/SharpZipLib/
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 29
Reputation: jbrock31 is an unknown quantity at this point 
Solved Threads: 1
jbrock31 jbrock31 is offline Offline
Light Poster

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

 
1
  #3
Mar 17th, 2009
You need to use

System.IO.Compression namespace.
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

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

 
1
  #4
Mar 19th, 2009
Originally Posted by jbrock31 View Post
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.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 19
Reputation: thegreatkk is an unknown quantity at this point 
Solved Threads: 0
thegreatkk thegreatkk is offline Offline
Newbie Poster

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

 
0
  #5
Mar 19th, 2009
Thank you boss.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC