Delete strange files

Source: Internet
Author: User
In Windows, we will inevitably encounter a situation where files cannot be deleted using conventional methods. Especially for Windows XP users, such problems are frequently encountered. To relieve user confusion, we will try to effectively delete those stubborn files through a variety of unconventional means.

I. Conventional Methods for deleting stubborn files

1. After restarting the Windows operating system, delete the files as usual.

2. Use commands such as del and deltree on the DOS (or command prompt) interface.

3. Use a third-party tool from a non-Windows Resource Manager, such as the total commander, ACDSee, flashfxp, and Nero software with the folder browsing function.

4. If you have installed more than two operating systems, you can delete files from other operating systems.

5. Press F8 at startup to enter safe mode for deletion.

2. delete the files in use by other programs

Problem:

In Windows XP, you are about to delete a large-capacity AVI file, but the system always prompts you that you cannot perform the delete operation. Other programs are in use, even when you start Windows.

Solution:

Method 1: Open notepad and click "file"> "Save as" on the menu bar. The name file must be the same as the file name you want to delete (including the extension) and then be replaced, the size is changed to 0 kb. Run the DELETE command.

Method 2: create a new folder in the same directory of the AVI file and restart. Now, do not select the AVI file. First select the folder created only after the installation, and then press Ctrl + The AVI file to delete it.

Method 3: Change the AVI file extension to any other invalid file type, and then delete the file.

Method 4: Disable the media preview function of Windows XP once and for all. Click "start"> "run", enter "cmd", and press Enter. Enter regsvr32/u shmedia. dll in the "command prompt" window.

After you press enter to confirm the operation, the preview function of the video file will be uninstalled. When you need to restore the video file preview function, enter the regsvr32 shmedia. dll command in the "command prompt.

Method 5: Start the media player that played the AVI file and open another file. Then, try again.

Method 6: You can use the WinRAR program to delete the file. Right-click the AVI file and select "add to compressed file" in the pop-up menu ", in the "General" tab in the pop-up window, select the "delete source file after compression" check box. After confirming the operation, perform the compression operation. Delete the compressed file.

Method 7: Call the Windows Task Manager and select end explorer process. Do not close this window. At this time, there will be a situation like a dead machine. Switch to the internal application development tab page, click "renew New Task", click "erer.exe", and confirm the operation. After that, the desktop becomes normal again, and then you can perform the delete operation.

3. cleverly Delete "non-empty folders" or "bad Files"

Problem:

In Windows XP (NTFS partition format), the specified file cannot be deleted either in the resource manager or using a third-party tool. For example, if you delete the file with total commander, the system first prompts that the folder is not empty, no response after confirmation. That is to say, when a DOS disk is started, the NTFS for DOS pro can be loaded with read/write versions and cannot be deleted. The prompt is "bad file name", but the folder can be seen.

Solution:

In this case, the file cannot be deleted, probably because of the long file name in NTFS format. You can use the 8.3 format to narrow down the length or change some directory names in the path to reduce the length of the path. For example, you can temporarily change the name of some directories in the path or use the 8.3 format in command line mode. For example, if the "Linux FAQ" directory changes to 8.3, it means "linuxf ~ 1 ~ 1 "to enter the directory, and then you can use the del command to delete the specified file. To delete a directory, run the RD command.

4. cleverly delete the file "the specified program or file is in use"

Problem:

When deleting a file, the system prompts in the pop-up dialog box that the specified program or file is in use and cannot delete warning information such.

Solution:

Method 1: In this case, we can solve the problem by ending the process related to the pre-deletion file. So how can we know which processes are associated with a specified file? You can use the wholockme tool to find out. Run cmdinstall.exe to install the program first.

Next, go to the directory where the pre-deleted file is located, right-click the file, and select "who lock me?" In the pop-up menu ?".

The "lockers" window will pop up, in which we can know all the processes currently calling this file.

After selecting the process name, click "Kill process" to bring up the "kill-Confirmation" dialog box. Click "yes" to confirm the process operation. After all the processes are completed, you can delete the specified file through the normal channel.

TIPS: in fact, this method is especially applicable to the deletion of Trojan servers. This very threatening small stuff can only be deleted after blocking all the processes related to it.

Method 2: If the DLL dynamic link library file called by the specified program or file is not released in the memory, the system will prompt that the file is in use when the file is deleted. In this case, we can delete the system page files in the DOS environment. Windows 9x contains the "win386.swp" file (in the Windows directory of the System Disk ), in Windows 2000/XP, "pagefile. sys File (located in the root directory of the System Disk ).

Method 3: if the virus firewall is resident in the system and the system is checking the file you are about to delete when scanning for virus detection, the system will prompt that the file is in use. In this case, you only need to pause the real-time monitoring operation.

5. cleverly Delete strange files of other categories

1. Files cannot be deleted due to user permission issues

If the current Windows User Logon identity does not have the permission to delete the specified file/folder (for Windows NT/2000/XP/2003 operating system), you only need to log on as an administrator again.

2. Files or folders cannot be deleted due to invalid characters

If the file or folder cannot be deleted due to invalid characters, enter the directory of the file to be deleted in the "command prompt" interface and enter "dir> Del. bat ", using the DOS pipeline command to automatically input the file list of the current directory to the batch processing command file" Del. BAT, and then modify the batch command file, only keep the file or directory name, and add "Del" or "RD" before the file or directory name ", then run the batch processing command to delete it.

3. You cannot delete any files in the system.

Check whether the system has installed the anti-deletion protection software. If yes, delete 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.