![]() using (FileStream originalFileStream = fileToCompress.OpenRead()) Specified stream and compression level, and optionally leaves the stream open. If ((File.GetAttributes(fileToCompress.FullName) & FileAttributes.Hidden) != FileAttributes.Hidden & fileToCompress.Extension != ".gz") Select the folder or file (s) that you want to compress. Right click on a selected file and hover over the 7-Zip options. ![]() ![]() Select Add to filename.zip or Add to filename.7z for quick compression. If you want to modify settings select Add to archive. Using (GZipStream compressionStream = new GZipStream(compressedFileStream, CompressionLevel.Fastest, true)) Using (FileStream compressedFileStream = File.Create(fileToCompress.FullName + ".gz")) If you selected the quick option the compression will begin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |