Create a Flat ZIP Archive in C#

Often, you get a ZIP archive that contains other ZIP archives inside it forming a nested structure of the archives. In such cases, you may want to get a flat structure by extracting all the inner ZIP archives into the outer archive. To perform this operation programmatically, this article shows how to create a flat ZIP archive in C#.
January 17, 2022 · 3 min · Usman Aziz

Convert RAR Files to ZIP Archive in C#

RAR is a commonly used archive file format that supports lossless compression of data. Often, people prefer RAR over ZIP because it provides a better compression rate and keeps the archive size smaller. However, in certain cases, you may need to convert RAR files to ZIP archives. To achieve that, this article covers how to convert a RAR file to ZIP programmatically in C#.
January 14, 2022 · 2 min · Usman Aziz

Extract Nested ZIP Archives in C#

We often come across the scenario where multiple ZIP archives are encapsulated inside another ZIP. In such cases, first, you have to extract the parent ZIP and then the nested archives one by one. To make things easier for you, in this article, we will demonstrate how to extract the nested ZIP archives in C# .NET without writing complex code.
January 12, 2022 · 2 min · Usman Aziz

Delete Files in a ZIP Archive in C# .NET

While working with archives from within your .NET applications, you may need to manipulate files inside a ZIP. In the previous post, you have seen how to add files/folders in a ZIP archive. In this article, you will learn how to delete files inside the ZIP archives programmatically in C#. So let’s begin.
January 11, 2022 · 3 min · Usman Aziz

Create Executable Self-extracting Archive in C#

A self-extracting archive (SFX or SEA) is a special type of file that contains compressed data along with executable instructions. This archive has the ability to extract the files it contains by itself. Therefore, you don’t need any specific extractor or decompressor application to open self-extracting archives. In this article, you will learn how to create executable self-extracting archives in C# from within your .NET applications.
January 10, 2022 · 3 min · Usman Aziz

Merge Multiple ZIP or TAR Archives in C#

While working with archives from within your .NET applications, you may need to merge multiple ZIP or TAR files. For instance, you may want to extract files and folders from multiple archives and put them into a single archive. To achieve it, this article covers how to merge multiple ZIP or TAR files in C#. We will cover the merging of ZIP into ZIP, TAR into TAR, ZIP into TAR, and TAR into ZIP.
January 6, 2022 · 3 min · Usman Aziz

Create TAR.GZ and TAR.XZ Files in C#

TAR is a popular UNIX-based archiving format that is used to package multiple files including audios, videos, installers, etc. On the other hand, GNU is a data compression algorithm to compress large files before sharing. The TAR.GZ is the combination of TAR’s archiving and GNU’s compression. Similarly, XZ Utils also provides compression of TAR archives as TAR.XZ format. In this article, you will learn how to compress TAR archives and create TAR.GZ and TAR.XZ files in C#.
January 5, 2022 · 3 min · Usman Aziz

Convert ZIP Archives to TAR in C#

ZIP is a popular archiving format that is used to compress files and folders. ZIP makes it easier to share multiple files by reducing their size and keeping them into a single file. On the other hand, TAR is a famous Unix-based archiving format that is used to package the files before sharing. In various cases, you have to convert the ZIP archives into TAR format. To achieve this programmatically, this article shows how to convert a ZIP archive to TAR in C#.
December 27, 2021 · 2 min · Usman Aziz

Compress and Extract Files with GZip in C#

GZip archives (.gz are used to compress one or more files using the GNU zip compression algorithm. It is commonly used for file compression in UNIX operating systems. In this article, you will learn how to compress files and create GZip (.gz) archives programmatically using C#. Moreover, the article will also cover how to extract GZip archives using C#.
May 7, 2021 · 3 min · Usman Aziz

Open or Extract 7z (7zip) File Programmatically using C# .NET

7z files are popular as they have a good compression ratio. You can open or extract a 7z (7zip) file programmatically in your C# applications. Please check out the following sections to learn how to create 7z file extractor and unzip password-protected archives.
April 28, 2021 · 2 min · Farhan Raza