This article is a mirror article of machine translation, please click here to jump to the original article.

View: 2|Reply: 1

[Tips] .NET/C# uses 7z (SharpSevenZip) to compress backup folders

[Copy link]
Posted on7 minutes ago | | | |
Requirements: Develop a scheduled background task using .NET, call 7z to compress the folder with Lzma2, and archive multiple compressed files into a single file.

review
Linux compression zip, 7z extreme compression (minimum file)
https://www.itsvse.com/thread-11152-1-1.html

SharpSevenZip

SharpSevenZip is a 7-zip native library encapsulator. It is a managed 7-zip library written in C# that provides data (self-)decompression and compression capabilities (all 7-zip formats are supported). It encapsulates 7z.dll or any compatible 7z.dll file and uses the LZMA SDK, including self-extracting functionality.

Documentation:The hyperlink login is visible.
Source:The hyperlink login is visible.

This project is the fork of Squid-Box.SevenZipSharp, then Squid-Box.SevenZipSharp is the fork tomap SevenZipSharp project, and then the tomap is the fork of the CodePlex project, and now all three projects are not maintained. That's right, this is the history of development.

Squid-Box.SevenZipSharp:The hyperlink login is visible.
tomap SevenZipSharp:The hyperlink login is visible.

The SharpSevenZip package already contains 32-bit and 64-bit 7z.dll files (Note: this packageOnly supports running on the Windows platform), as shown below:



.NET console

Create a console application with the following reference:

The code is as follows:

Test2.16G file, compressed to 133MB in sizeOf course, this is also related to the content of the original document, just a brief explanation.




Previous:Linux uses ProxyChains4 to proxy access to the specified program network
 Landlord| Posted on6 minutes ago |
[Actual combat]. NET/C# implements MySQL database backups based on MySqlBackup.NET
https://www.itsvse.com/thread-10375-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com