Home > Article > Software Tutorial > How to add or delete files in ZIP file?
How to easily operate ZIP files: add or delete files In daily work, we often need to deal with ZIP compressed files, but sometimes we need to add or delete the contents. This article will delve into how to easily implement these operations so that you can manage ZIP files efficiently. PHP editor Strawberry has compiled a series of practical tips for you to guide you to complete the task easily.
First, we need to ensure that ZIP file management software is installed, such as WinRAR, 7-Zip or the file explorer that comes with Windows.
Use WinRAR, 7-Zip or Windows Explorer to open the ZIP compressed file, then drag and drop the selected file directly into the ZIP file window, and then the system will pop up a dialog box prompting you to confirm adding the file. Click [OK] to add successfully.
The picture below takes 7-Zip as an example:
Use WinRAR, 7-Zip or Windows Explorer to open the ZIP compressed file, select the file that needs to be deleted in the compressed package, then right-click the mouse and select [Delete] in the list, and then the system will pop up The dialog box prompts to confirm the deletion, click [Yes] to delete successfully.
The picture below takes Windows Explorer as an example:
If the ZIP compressed file was originally password protected, you can still add or delete files according to the above method, but the added files will not be protected.
In other words, to open the original file in the compressed file, you need to enter the originally set password, but the newly added file can be opened directly without a password.
If you want the newly added files to be password protected, you need to unzip the ZIP file first, put the added files together, then recompress the files and set a password.
Of course, you still need to enter the originally set password during the decompression process.
What should you do if you accidentally forget the password of the ZIP compressed file? Files cannot be opened or decompressed without a password. Compression software such as WinRAR does not have a "forgot password" option and cannot solve this problem.
In this case, we need the help of other tools.
For example, PepsiCo ZIP Password Recovery Tool can help us retrieve the password of ZIP compressed files.
The tool provides 4 retrieval methods. You only need to drag and drop the ZIP file with a password into the tool, then select the appropriate method and be prompted for operation.
After completing the operation, wait for the password to be retrieved.
The above is the detailed content of How to add or delete files in ZIP file?. For more information, please follow other related articles on the PHP Chinese website!