Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to extract a file using c#.net.

That file may be zip or rar or tar or any more zip files if it containing password.

Please help me.


Thanks
saichand
Posted
Updated 1-Sep-10 11:24am
v2
Comments
TheyCallMeMrJames 27-Jul-10 11:21am    
do you know the password?
Dalek Dave 1-Sep-10 17:24pm    
Edited for Grammar.

Here is a CP project[^] with details on working with ZIP files.

Cheers.
 
Share this answer
 
http://www.7-zip.org/sdk.html[^]

SDK from the people who make the 7Zip program.
 
Share this answer
 
There are plenty of options. See this[^] thread.
 
Share this answer
 
To extract ZIP files, you can use classes in System.IO.Packaging namespace.
To extract RAR files, you can use the free UnRAR.dll distributed with WinRAR.
To extract TAR or 7z or other files, refer to 7-zip SDK.

By the way, what do you mean 'if it containing password' in your question? Are you going to bypass the password prompt to extract it? It is not possible - without password, extraction would fail - or, the result would be unusable.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900