Pages

Wednesday, May 15, 2013

Can't Delete Folder, "Destination Path Too Long" Error in Windows 7


I finally deleted all of the folders by drilling down to the almost endless copies of Application Data and moving subsequent levels to the root of the D:\ and deleting piece by piece.  I have no idea how those copies were made in the first place, and secondly, why Windows makes it so hard to delete such a nasty, unwieldy folder structure.  Ugh!

next time it happens
try this
At a command prompt with elevated level (Start -> type cmd -> rightclick cmd > run as administrator)
try the following:

cacls D:\Foldername /T /G Everyone:F
rmdir /s /q D:\Foldername

This command should delete any folder whatsoever

1 comment:

  1. Try " Long Path Tool " useful in situations where you see these error messages: Cannot read from source file or disk, there has been a sharing violation, cannot delete file or folder, the file name you specified is not valid or too long, the source or destination file may be in use
    and many other file managing errors that you encounter in your computing use.

    ReplyDelete