Computer prompts "Cannot access this folder path is too long" delete what to do

Source: Internet
Author: User

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, is not very good, even if the use of 360 of the file grinder or can not be done! Finally, I think 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. Note or restart the computer (computer), and then try to delete.

2. Go to "Safe Mode delete".

3. Use Del, deltree, and RD commands on the Pure DOS command line to remove it.

4. If there are more subdirectories or files in the folder that cannot be deleted, you can delete the subdirectories and files in the folder, and then delete the folders.

5. If the "Add or Remove Programs" option to uninstall a software, found that the software installation directory still exists, there are several files left inside, directly deleted, the system is prompted to use the file can not be deleted.

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. Issues of competence

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

<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 the 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 &lt; 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 the file in the folder first


Delfolder (path + "/" + templist[i])//Delete empty folder


flag = true;


          }


       }


return flag;


     }


}


</textarea>

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.