I was using a YAMJ program for creating a set of HTML pages which dump into a folder I specify, but it actually created 30 or so folders within folders of the same name.
If I try to delete them all, it first acts like it's going to, but then I get a "Source Path Too Long" error, or sometimes a "Destination Path Too Long" error. it says to shorten the file name, but the problem isn't the file name being too long, it's the path because of what it did (i.e. it buried folder into folder into folder 30 deep).
Please, how do I delete this mess? it seems like a windows glitch. There must be some way to make Windows able to delete these. I've tried moving and renaming the folders/files, but nothing works.
One way I've done it is to just drill down into the almost endless path of directories and start moving some of them out to the root directory and then delete them that way. It takes awhile, but that is the only way I've been able to do it.
Pretty stupid though, huh? You can create the directory paths that are too long, but you can't delete them without moving them.
It really isn't about the depth of the folders, it's the fact that by the time you get to the bottommost folder level the file name at that level has gotten so long that it exceeds the system's maximum file name length (normally 260 characters).
There's a trick you can use to get the system to handle longer filenames. Try opening up a command prompt window and deleting the folder tree using a filename that starts with "\\?\d:\" instead of "d:\". For example if the top level of the directory tree you want to remove is: