Windows 7 Delete file hint is occupied? System built-in tools to handle

Source: Internet
Author: User
Tags resource

In Windows, when you delete a file, the system prompts you to "be used by another program" so that it cannot be deleted, which we often encounter. This is because a background process is calling the file, and the deletion can only be done at the end of the process. So how do you locate the process? In general, we need third-party tools such as "Ice Blades". In fact, using its Resource Monitor in Windows 7 can be easily done.

Let's simulate a situation where the file cannot be deleted. In D disk, create a folder named Test, and then run the command prompt (CMD) and locate the command path in the folder directory. At this point, we delete the test folder, and a dialog box prompts you that the operation cannot be completed and that the folder or file opens in another program.

Next we can do this:

1. Right-Windows 7 taskbar-start Task Manager-performance-Resource Monitor

2. Click on the "CPU" tab in the console to navigate to the tab page

3. Enter "Test" in the search box to the right of "associated handle", where the system process associated with the test handle is automatically searched

4. You can see that the search process is cmd.exe (which confirms the scenario above). This means that the Cmd.exe process is invoking the test folder to cause a failure to delete the folder. Right-click the process, and then select the end Process command to eject the warning dialog box and confirm that the Cmd.exe process can be completed. Finally, delete the test folder and you can see that the folder was successfully deleted

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.