You can read all the details at: Open or Extract 7z (7zip) File Programmatically using C# .NET
Last active
December 23, 2021 07:00
-
-
Save aspose-com-gists/b8d9c3e382160f4d615d320c0603a0a6 to your computer and use it in GitHub Desktop.
Open or Extract 7z (7zip) File | Unzip 7z Programmatically using C# .NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load password protected input 7z archive. | |
using(var archive = new SevenZipArchive("Sample_Encrypted.7z")) | |
{ | |
// Extract or open 7z archive with password. | |
archive.ExtractToDirectory("Sample_Encrypted7zip", "aspose"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load input 7z (7zip) Archive with SevenZipArchive class. | |
using (SevenZipArchive archive = new SevenZipArchive("Sample.7z")) | |
{ | |
// Extract all file in 7zip to a directory using ExtractToDirectory method. | |
archive.ExtractToDirectory(dataDir + "Sample_ExtractionFolder"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment