How do you compress and extract files and folders in your computer? Resolume arena 5 1 2 download free. Do you complete them by use of the compression tool and decompression software which are downloaded and installed by yourself? In fact, in Windows computer, there are built-in compression and decompression functions which, in many cases, can be applied to achieve the same aim. And this article will illustrate how to use these functions to zip and unzip files and folders in Windows 8 computer.
Video guide on how to zip and unzip files and folders on Windows 8:
Part 1: Method to zip files and folders on Windows 8
Best way to convert your RAR to ZIP file in seconds. 100% free, secure and easy to use! Convertio — advanced online tool that solving any problems with any files. Upload your file you want to compress to ZIP: Drop Files here Choose Files. Enter URL Dropbox Google Drive. Enter file URL: Add URL. Warning: Please upload a file. I created a new TXT file I called SEARCH.TXT in my Documents folder and added the text “bbbb”. After typing bbbb in File Explorer’s search window, Explorer found the SEARCH.TXT file.
Step 1: Select the files and folders you want to put in the same compressed folder.
Step 2: Right-click one of the selected, tap Send to in the context menu and choose Compressed (zipped) folder in the sub menu.
Step 3: Rename the zipped folder. (Optional)
Right-tap the compressed folder, select Rename in the list and then input a new name.
![]() Part 2: Method to unzip files and folders from a compressed folder in Windows 8
Step 1: Right-click the compressed folder and choose Extract All in the context menu.
Step 2: Click Extract to decompress the materials to the folder with a same name as that of the zipped folder. Or you can click Browse to select another folder and tap Extract to save them in the selected one.
Tips:
1. For those that cannot be zipped and unzipped by the methods above, the specialized compression and decompression tools are in need.
2. These methods also apply to Windows 7.
Related Articles:
The System.IO.Compression namespace contains the following types for compressing and decompressing files and streams. You can also use these types to read and modify the contents of a compressed file.
The following examples show some of the operations you can perform with compressed files. These examples require the following NuGet packages to be added to your project:
If you're using .NET Framework, add references to these two libraries to your project:
![]()
Example 1: Create and extract a .zip file
The following example shows how to create and extract a compressed .zip file by using the ZipFile class. The example compresses the contents of a folder into a new .zip file, and then extracts the zip to a new folder.
To run the sample, create a start folder in your program folder and populate it with files to zip.
How To Zip A File Folder To Send By EmailExample 2: Extract specific file extensions
The next example iterates through the contents of an existing .zip file and extracts files that have a .txt extension. It uses the ZipArchive class to access the zip, and the ZipArchiveEntry class to inspect the individual entries. The extension method ExtractToFile for the ZipArchiveEntry object is available in the System.IO.Compression.ZipFileExtensions class.
To run the sample, place a .zip file called result.zip in your program folder. When prompted, provide a folder name to extract to.
Important
When unzipping files, you must look for malicious file paths, which can escape out of the directory you unzip into. This is known as a path traversal attack. The following example demonstrates how to check for malicious file paths and provides a safe way to unzip.
Example 3: Add a file to an existing zip
The following example uses the ZipArchive class to access an existing .zip file, and adds a file to it. The new file gets compressed when you add it to the existing zip.
Example 4: Compress and decompress .gz files
You can also use the GZipStream and DeflateStream classes to compress and decompress data. They use the same compression algorithm. You can decompress GZipStream objects that are written to a .gz file by using many common tools. The following example shows how to compress and decompress a directory of files by using the GZipStream class:
How Do I Open A Zip FileSee alsoComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2021
Categories |