In addition to the folder when found a problem, a folder is always deleted!
Again careful examination found that there is no problem, but it is inexplicably deleted not to drop. Another layer of check, to the last found after double-clicking the folder prompts: Unable to access the folder path is too long.
Look at other people said the way, in fact, are not very good, even if the use of 360 of the file grinder or can not be done! Finally think of a way to get it done, the solution is really very simple, the following tells you:
The folder path is too long and too deep, for example, the file path is a/b/c/d/f/g ....
Then, you can cut off the beginning of a link, put it outside, so it is similar to a/b/c/, and then d/f/g .... Put it in the same place as a, so that the folder path is not too long, then delete the problem.
I've also summed up a few ways
I. Conventional SOLUTIONS
1. Remove or reboot the computer (computer), and then try to delete it.
2. Enter Safe Mode removal.
3. Delete them using the Del, deltree, and RD commands on the Pure DOS command line.
4. If you have more subdirectories or files in a folder that cannot be deleted, you can delete the subdirectories and files in the folder, and then delete the folders.
5. If you uninstall a software after the Add or Remove Programs option, you will find that the installation directory of the software still exists, and there are several files left in it, and the system prompts the file to be used without deleting it.
You can open the Command Prompt window first, press the "Ctrl+alt+del" key combination to open Task Manager, shut down the "explorer.exe" process in the process (preferably close all programs before that), switch to the command prompt window, Use the DOS command to enter a folder that cannot be deleted, and you can delete the folder by entering the Del folder name. When the deletion is complete, select "File → new task" in Task Manager, and enter "Explorer.exe" to re-establish the shell of the system.
Second, Advanced Solutions
1. Disk error
Run a disk scan and scan the partition where the file is located, make sure that the repair files and bad sectors are selected before scanning, scan all options thoroughly, and then delete the files after scanning.
2. Pre-read mechanism
Some video, image file playback is interrupted, or is being previewed, causing an inability to delete. In the Run box, enter: regsvr32/u Shmedia. DLL to log out of the read-only function. or delete the [HKEY_ Local_machinesoftwareclassesclsid{87d62d94-71b3-4b9a-9489-5fe6850dc73e}inprocserver32] key value in the registry. You can then delete the file.
3. Firewall
Since anti-virus software also causes the prompt file to be used when the deletion is performed, try to stop or close it and then delete it.
4. Office, WPS series software
Illegal shutdown of Office and WPS can also cause files to be deleted or renamed. Rerun the program, then shut down normally, and then delete the file.
5. With the help of WinRAR
Right-click the folder you want to delete and select Add to compressed file. In the pop-up dialog box, select the "compressed delete source file," casually write a compressed package name, click "OK" button.
6. Permission Issues
If this is a Windows 2000/xp/2003 system, first determine if you have permission to delete this file or folder.
7. Removal of executable files
The DLL dynamic link library that is being invoked by the image or program that executes the file is not released in memory, and the file is also being used when deleted, and the solution is to delete the paging file in the system under DOS (Win98 is win386.swp,win2000/xp is Pagefile.sys).
8. Use of other software methods:
With Unlocker (the best stubborn software Removal tool), unlocker is a free right key expansion tool, the user after installation, it can be integrated in the right mouse button operation, when the user found that a file or directory can not be deleted, just press the right mouse button in the " unlocker", then the program will immediately show which programs occupy the directory or file, and then just press the pop-up window of the"unlock"will be able to unpack your files??? /p>
Unlocker differs from other unlocking software in that it does not force the file-taking program to be closed, but rather unlocks the file in a way that is connected to the program, and therefore does not cause the user to lose data as a result of the forced shutdown of the program, as other unlocking programs do.
If you have a program that is much simpler, run the following program to help you get it done.
The code is as follows |
Copy Code |
<textarea readonly= "readonly" name= "code" class= "Java" > Package io; Import Java.io.File; public Class AA { public static void Main (String args[]) { AA t = new AA (); Delfolder ("d:/0"); System.out.println ("deleted"); } Delete Folder param folderpath folder Complete absolute path public static void Delfolder (String folderpath) { try { Delallfile (FolderPath); Delete all contents inside String FilePath = FolderPath; FilePath = Filepath.tostring (); Java.io.File Myfilepath = new Java.io.File (FilePath); Myfilepath.delete (); Delete empty Folder catch (Exception e) { E.printstacktrace (); } } Delete all files under specified folder Param path folder complete absolute paths public static Boolean Delallfile (String path) { Boolean flag = false; File File = new file (path); if (!file.exists ()) { return flag; } if (!file.isdirectory ()) { return flag; } string[] templist = File.list (); File temp = null; for (int i = 0; i < templist.length; i++) { if (Path.endswith (File.separator)) { temp = new File (path + templist[i]); } else { temp = new File (path + file.separator + templist[i]); } if (Temp.isfile ()) { Temp.delete (); } if (Temp.isdirectory ()) { Delallfile (path + "/" + templist[i])//delete files in folder first Delfolder (path + "/" + templist[i])//Delete empty folder Flag = true; } } return flag; } } </textarea> |