I couldn't delete a set of files on an old Windows OS because "The file name is too long". After fruitless Google searching, I found the solution and so, am posting here for posterity.
- Remove any files you don't want to delete (and whose name is short enough to allow this!).
- Ensure recursive write access in the containing file directory and all parent directories.
- Starting at the root directory, rename it to a single character, for example 'a'.
- Do this for each successive sub-directory, marching towards the one containing the files you want to delete. So you might go from a path like this:
- Now, try deleting the files. If it still doesn't work trying renaming the files themselves and then deleting.
C:\some\long\windows\path\to\files\you\cannot\deleteto a new path like this:
C:\a\a\a\a\a\a\a\a\a
Recent Comments