Handle the secret process and delete stubborn files

Source: Internet
Author: User

I believe many of my friends have encountered some "stubborn" files that cannot be deleted. They do not show that the file is being used, that is, the file is read-only. If a dual system is installed, you can restart another system to delete it, or use unlocker to delete it. Of course, you need to download and install it before using unlocker. However, if you do not have the Internet download conditions for various reasons or are in a single system, I am afraid it is not that convenient.

In fact, using the built-in system tools of Windows 2000/XP/Vista, we can also easily deal with the secret processes in the system, so as to delete stubborn files without restarting.

  Simple shot

Then you can delete these so-called stubborn files.

In the right-hand task column, open the Audit Task Manager window, switch to the Audit Progress navigation bar, find the process "cmd.exe" here, and click the "Terminate process" button in the lower right corner. A dialog box is displayed asking for confirmation. After confirmation, the process can be completed. Next, select "new job" under the File menu of the task manager, and click "Browse" in the lower right corner to find the file to be deleted, then run the DELETE command from the right-click menu (1 ).

  Find the culprit

Then, who is the real culprit?

Here is a simple method. Press "win" + "R" to open the running dialog box, enter "cmd" here to enter the command prompt environment, and enter "openfiles/local on ", this command is used to enable the system global flag "maintain Object List". After the command is executed, the system must be restarted to take effect. In the future, you can directly use "openfiles" to display the list of all the corresponding programs of files opened in the system. You can find them carefully here.

Unified world

For stubborn processes, we still have a way to ask ntsd for help. This Command needs to be used in the command prompt environment, although this command does not exist in Windows Vista, but it can be copied from Windows 2000/XP and used directly. First, you need to find the PID (process identifier) of the corresponding process under the "process" tab of the task manager. Note that the PID information is not displayed by default, you must open the "Select column" dialog box from the "View" menu, and check the "PID (process identifier)" check box here, then you can view the PID information of the related process in the Figure 2 window. Now you need to write down the PID Number backup of the related process.

Enter the command prompt environment and enter "ntsd-C-Q-P ***". Here, "***" is the recorded PID Number, after the execution, the related processes can be completed, and then the so-called "stubborn" files can be deleted smoothly.

In fact, in addition to the methods described above, we can also use WinRAR, a compression tool installed on almost every machine, to delete stubborn files, you only need to right-click the file to be deleted, select "add to compressed file", and then click the "delete source file after compression" check box in the pop-up "compressed file name and Parameters" dialog box, after compression, delete the new compressed file.

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.