Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to Unzip the .7zip file extension in C#??
C#
public static void Extractallfiles(string srcPath, string destPath)
      {
          ZipForge archiver = new ZipForge();            
          archiver.FileName = srcPath;
              // Open an existing archive
              archiver.OpenArchive(System.IO.FileMode.Open);
              // Default path for all operations             
              archiver.BaseDir = destPath;
              // Extract all files from the archive to C:\Temp folder
              archiver.ExtractFiles("*.*");
              // Close archive
              archiver.CloseArchive();
      }

This code is doesn't support for .7zip format file, No issue with .zip file extension.
Pleas share if you have any inputs on this
Posted

 
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