Unable to delete file resolution

  
                              

Sometimes when we delete a file or folder, the system prompts that it cannot be deleted. This is a real headache. Let's take a look at the solution.
First, the general solution:
1, cancel or restart the computer, and then try to delete.
2, enter "safe mode delete".
3, in the pure DOS command line use the DEL, DELTREE and RD commands to delete it.
4, if there are more subdirectories or files in the folder and can not be deleted, you can delete the subdirectories and files in the folder, and then delete the folder.
5, end the Explorer.exe process in the Task Manager, and then delete the file in the Command Prompt window.
6, if you have installed ACDSee, FlashFXP, Nero, Total these software, you can try to delete folders in these several software.
Second, advanced solution:
1, disk error
Run the disk scan, and scan the partition where the file is located, before scanning, make sure that the repair file and bad sectors have been selected, scan all options, scan and then scan Delete the document.
2, read-ahead mechanism:
Some media playback is interrupted or is being previewed, it will not be deleted. Enter: REGSVR32 /U SHMEDIA.DLL in the Run box to unregister the read-ahead feature. Or delete the following key in the registry: [HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\CLSID\\{87D62D94-71B3-4b9a-9489-5FE6850DC73E}\\InProcServer32].
3, firewall:
Because the anti-virus software will take up the file being checked when checking the virus, which causes the file to be used when the deletion is performed. At this time, try to temporarily turn off its real-time monitoring program, perhaps solve.
4, OFFice, WPS series software:
OFFice illegal shutdown will also cause the file can not be deleted or renamed. Rerun the program, then close normally, and then delete the file.
5, with WinRAR:
Right click on the folder you want to delete, select "Add to compressed file". In the pop-up dialog box, select "Delete the source file after compression," just write a compressed package name, click OK.
6, permission issues:
If it is 2000 and xp system, please first determine whether there is permission to delete this file or folder.
7, executable file deletion:
If the executable file or the DLL dynamic link library file called by the program is not released in memory, the file will be prompted when deleted, the solution is Delete the system's page file, Win386.SWP in Win98 and pagefile.sys in Win2000/XP. Be careful to delete it under DOS.
8, file shredding method:
Using a file shredder, such as File Pulverizer, you can completely remove some stubborn files.
Third, make a "file safe" can not be deleted
folder can not be deleted, not necessarily a bad thing, if you put some important files in this directory, can you avoid accidental deletion? A folder with a file name containing only spaces is not allowed to be created and deleted in Windows, but in DOS it is possible to create a folder with a file name containing \\.

Copyright © Windows knowledge All Rights Reserved