Home > Article > Software Tutorial > How to create a ZIP volume compressed file?
When large-size files need to be compressed, creating ZIP volume compressed files can simplify storage and transmission. In this article, PHP editor Strawberry will introduce in depth how to create ZIP volume compressed files and guide you step by step through the entire process. Read on to learn how to efficiently compress large files into manageable portions.
To create a ZIP volume compressed file, you need to use a decompression tool, and it can support the ZIP compressed file format, such as the common 7-ZIP and WinRAR tools.
If you need to compress files or folders, you can use the WinRAR tool. First select the files or folders that need to be compressed, then right-click the mouse and select [Add to compressed files] in the WinRAR list.
After the [Compressed file name and parameters] dialog box appears, select the "ZIP" format under [Compressed file format], and then click the [Split into volumes, size] drop-down list to set the size of each volume file. You can You can directly select the value in the list, or you can enter the value yourself. You need to bring the unit, such as 10M.
If you need to protect the ZIP file, you can also add a password to the volume. Click [Set Password] to add it. Finally, click [OK] to start creating volume files.
If you are using the 7-ZIP tool, similarly, first select the file or folder that needs to be compressed, then right-click the mouse and select "Add to compressed package" in the 7-Zip list.
After the [Add to Compressed Package] dialog box appears, select the "ZIP" format in the [Compression Format] drop-down list, and then set the size of each volume file in the [Volume Size, Bytes] drop-down list. You can directly select the value in the list, or you can enter the value yourself. You need to bring the unit, such as 10M.
If you want to set a password for a volume, you can also set it in the [Password] area. Finally, click [OK] to start creating volume files.
It should be noted that no matter which decompression tool is used to create a ZIP volume compressed file, after the creation is completed, it is best to put all the volumes in a separate folder and maintain the original format of the file name. , that is, do not modify the file name, as shown in the figure below.
Otherwise, the volume file cannot be opened or decompressed later.
If a dialog box pops up prompting "an error occurred" when opening or decompressing a ZIP volume compressed file, you can check whether the volume file is missing or the file name has been changed.
If you set a password when creating a ZIP volume compressed file, then when opening or decompressing the volume file, you need to enter the originally set password before proceeding to the next step.
What if you accidentally forget your password? Because the decompression tool does not have a "forgot password" option, you cannot open or decompress the volume file without a password.
In this case, we need to use other tools to solve the problem.
For example, the ZIP tool used by the editor can help us retrieve the password of ZIP volume compressed files.
The tool provides 4 retrieval methods. We need to merge the ZIP compressed files into one ZIP file, then import it into the tool, then select the appropriate method and follow the prompts.
If you don’t know how to merge ZIP volume files, you can continue to look at the method below.
We can use the "Merge Files" function of the 7-ZIP decompression tool to merge the volume files.
First open the folder where the ZIP volume compressed file is located through 7-ZIP, then select the first volume file, and then click [Merge Files] in the menu tab [File] list to separate the ZIP volume files. Merged into a compressed package.
The above is the detailed content of How to create a ZIP volume compressed file?. For more information, please follow other related articles on the PHP Chinese website!