Solution to Folder deletion failure because the file name is too long/the folder path is too long

Source: Internet
Author: User
Tags robocopy

When importing a project using eclipse, the Folder creation experienced a horrible recursion and a super-long folder was created. I tried to delete the resource manager or use del in the command line, but I still cannot fix it. After checking on the internet, I finally solved the problem.
Http://download.zol.com.cn/detail/10/91484.shtmldownload robocopy, then decompress robocopy.exe

Assume that the path of the ultra-long folder is D: \ MIS \ ABC .....

1. Copy robocopy.exe to D: \ MIS.

2. Create an empty folder T1 under D: \ MIS

3. Start key + R, Enter cmd

4. Change the drive letter to D: \ MIS.

5. Input: robocopy/MIR T1 ABC

6. Wait until the command is executed (I waited for about half a minute and the screen was rolling)

7. After the command is executed, the original ultra-long folder ABC is changed to be the same as T1, which means it is an empty folder and can be deleted normally!

8. Complete

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.