The method of searching for the reason of file not cooperating with refuse to return to recycle station

Source: Internet
Author: User
Tags readable

Users often experience a tricky situation, and users often get headaches when faced with a file they can't delete. Today's small series will give users the reasons why "stubborn" cannot be deleted and how to delete them.

This type of problem generally occurs in the following ways:

One: On the NTFS file system, the ACL (access control List) is used and there is no access to the file you want to delete;

Second: The document is being used by another program user;

Third: File system corruption caused no access to the file you want to delete;

Four: The path of the file is too long to cause access;

Five: The filename uses an illegal character or windows reserved keyword.

The corresponding resolution for each situation is as follows:

Case one, you can use the Administrator account to gain access by using the Reset ACL method

In this case, you can resolve the following methods: Log on with an administrator account, right-click on an inaccessible file, select the properties, select the Security tab, select the Advanced button, select the Owner tab, and select the administrator account in the "Change owner to" box, reverse color, and then click " Apply button to make the owner become yourself. Finally click the OK button 2 times to close the Properties dialog box. To open the properties dialog again, you can see the "Add" button under the Security tab has been programmed to choose, click this button, in the "Select Users and Groups" dialog box, enter the name of the account you want to access this file (note format: Computer name account name).

Click OK to return to the previous Level dialog box, then select Full Control Check in the "Permissions for Account name" box and click OK to regain access. Similarly, you can use the cacls command to assign permissions in command line mode.

Case two, find the program that uses the deleted file and close

A common failure occurs when an AVI file is deleted. Because Windows has a read-only mechanism, prefetching can cause the file to be in use, so it cannot be deleted. There are many solutions:

A) Close all resource managers and delete files or directories using command del or RD (recommended);

b Delete the following key value from the registry:

Hkey_local_machinesoftwareclassesclsid{87d62d94-71b3-4b9a-9489-5fe6850dc73e}inprocserver32. It is recommended that you export a backup of this registry key value so that you can recover later if needed;

c) into the DOS command window, run: regsvr32/u shmedia. DLL to unregister the pre-read function;

D Use the Windows Traditional Style folder view (Folder Options--Select below tasks)

e Use of Third-party tools that can browse local files, such as FLASHFXP, CUTEFTP, etc., for deletion.

Case three, check file system, troubleshoot errors

When you see the following prompts, you need to pay attention to your file system:

: Is not accessible

The file or directory is corrupt and non-readable. The file or directory Iscorrupt and non-readable.

The file or directory is corrupt andunreadable. Please Run the Chkdsk utility.

Elimination Method: Check your drive using the chkdsk command. Repair the damaged file system. There are a number of causes, such as bad hard drives, faulty hardware devices, or bugs in software that can cause this problem.

Situation four, the path is too long, more than most Windows can accept 255 bytes (NTFS file system does not have this problem)

Reduce the length of the path by using the 8.3 format to narrow the length or change the partial directory name in the path. For example, you can temporarily change some directories in a path to a name, or use the 8.3 format in command-line mode. For example: Suppose that the file you are deleting is located in the following path:

C:documentationshowto

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.