Using Windows 7 system to easily resolve files that cannot be deleted

Source: Internet
Author: User
Tags resource safe mode

When I visited the forum recently, I found a problem. I think this problem is Win7 users often encounter problems, and then turn this issue to share with you. There are friends: sometimes, when I want to delete a file or folder, usually encountered "operation cannot be completed, files are running in another program." Can not delete, quit the program, or delete, this time how to do?

File cannot be deleted, such a situation we often encounter. This is because a "behind-the-scenes" process is calling the file, and the deletion can only be implemented when the process is closed. So how do you locate the process? In general, we need third-party tools such as "Ice Blades". However, using its Resource Monitor in Windows 7 can be easily done.

Below we simulate the situation that 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 see the dialog box shown in Figure 1, indicating that the operation cannot be completed, and that the folder or file opens in another program.

Next we can do this: Right-click the Windows 7 taskbar to select the Start Task Manager command, click the Performance tab in the Open Windows Task Manager Console window, and then click the Resource Monitor button in the tab page to enter the Resource Monitor console. Click the "CPU" tab in the console to navigate to the tab, and then enter "test" in the search box to the right of the associated handle, and the system automatically searches for the system process associated with the test handle.

For a moment, 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. Although the above is a simulation of the scene, in fact, exactly the same as the real situation, as long as the flexibility of the application of such problems will not bother you again.

There are two other ways to solve, but also together to learn.

Method One: Restart the computer in Safe mode to remove

When you restart the computer, press F8 to enter Safe mode. In Safe mode, the system does not actively run other programs, it is tantamount to an independent interference environment. In this way, the file will not be occupied by other programs or systems, you can directly delete the file or program. (This method is best)

Method Two: Delete in WinPE

Into the WinPE, but also to enter the safe mode almost, directly deleted on it.

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.