I'm using Windows 7 Professional 64-bit, and I somehow managed to create a system of recursive directories. For example, I have directories A, B, and C, which are nested like so: A/B/C. However, when I open directory C, I see directory A. The final directory structure looks something like A/B/C/A/B/C/... If I try deleting this with Windows (both using and bypassing the Recycle Bin) I get an error stating that "The source file name(s) are longer than the system supports." Using RMDIR /s does not work either, as it complains that the folders are not empty (even with the /s parameter specified). How can I delete these directories permanently?
Give these a shot. Good luck!
Use some Robocopy tricks, quote:
That’s it. You are good to go.
I found out make a drive mapping about halfway into the folder structure you should be able to delete the latter half of the file heirarcy.
For example if you are getting the error trying to delete:
Then map a network drive Z: to
This will reduce the file herarch down to a smaller path. Open explorer and view the Z: drive. It should contain a folder called L (in this example).
You should now be able to delete the L and its subfolders without an issue, thereby deleting half the folder hierarchy. After that, disconnect the z: drive and try to delete whatever is left normally. Problem solved!
Use the Unlocker utility.
Delete the reparse point(s) that creates the loop. Find it with (may have to CTRL-C if keeps going into deeper looped directories):
Then delete it with RMDIR which will unlink it but not delete the contents.
Repeat until there are no more reparse points then delete the directory normally.
Instead of copying it over to the Directory just use Robocopy to delete immediately...