php editor Xigua will answer a common question for you today: "Why can't the files in the RAR compressed package be deleted?" When using the RAR compressed package, sometimes you will encounter the situation that the internal files cannot be deleted. The main reason is These files are still occupied, possibly because other programs are accessing these files or some processes in the operating system are occupying them. Solutions include closing related programs, restarting the computer, or using specialized tools to solve the problem of occupied files.
Actually, this is the "Lock Compressed File" setting when the file is compressed . After setting, in addition to being unable to delete the files in the compressed package, new files cannot be added, such as WinRAR decompression software. The "Add" and "Delete" options will be directly displayed in a gray state and cannot be clicked.
How to add or delete files in the compressed package after locking?
Since decompression software generally does not cancel the "lock compressed file" function, if we want to add or delete files in the RAR compressed package, we need to decompress the current RAR compressed package first, and then compress it into a file without "locked compressed file". file" compressed package.
Just decompress files as usual, click [Extract to] in the menu, then select the decompressed save path and other necessary options on the [Extract Path and Options] page, and then click [OK]. The decompression is completed.
If the RAR archive is not only set up to "Lock the compressed file", but also set up password protection, then during the decompression process, that is, after completing the previous step, a dialog box will pop up, prompting you to enter a password. To decompress the file, we need to enter the originally set password in the password field, and then click [OK] to complete the decompression of the file.
Of course, if you forget the password and cannot decompress the decompressed package, you will not be able to add or delete files to the compressed package with "Lock Compressed Files" set.
The decompression software does not have a "forgot password" option, so if we forget the password, we might as well use other tools to retrieve the password of the compressed package first.
Take the Pepsi Niu RAR password recovery tool as an example. The tool provides 4 retrieval methods, which can help us retrieve the password of RAR compressed files and RAR volume compressed files.
First import the RAR file into the tool, then select the appropriate method and fill in the relevant information according to the prompts;
Tool link: Pepsi Niu RAR password recovery tool
Then wait for the password to be retrieved.
The above is the detailed content of Why can't files in RAR archive be deleted?. For more information, please follow other related articles on the PHP Chinese website!