I can't delete entire folder due that file.
I tried to rename it to a shorter name but I can't do anything to the file, I also tried to restart my computer and see if it would just go away.
The error message says:
The file name(s) would be too long for the destination folder. You can shorten file name and try again, or try a location that has a shorter path.
After doing lot of things I found an easy way of removing a file with a path too long to be deleted. So simply
- Run cmd as Administrator (you might don't need it).
- Change path to the directory that file is located or the parent folder.
- I'm using robocopy command to get this done. finally run following commands. Because when you want to completely delete a directory and it has file with long names inside it, robocopy does a VERY good job for you.☺
mkdir empty_dir
robocopy empty_dir the_dir_to_delete /s /mir
rmdir empty_dir
rmdir the_dir_to_delete
Hi Aruna,
ReplyDeleteThanks for sharing this post. I have been using long path tool for this issue. It is very easy to use and It can delete, copy, move and bulk rename long path files or locked file easily.
I suggest you try Long path tool is the very good program for easily delete, copy & rename long path files, error, unlock solution.
ReplyDeleteTry it and solve your problem.
Try to use Long Path Tool, it really can help you with that.
ReplyDeleteIt will really help you to solve your problem.