Unable to delete a max lenght file ending with a space

  • Thread starter Thread starter Craig
  • Start date Start date
C

Craig

I have some favourites that I have backed up to a deeper
path on my Win 2000 PC.

In doing this, some of the filenames have been truncated
to 256 characters, however, some of the filenames end with
a space and these files cannot be copied or deleted.

How can I copy/delete these files?
 
Try deleting using the dir /x command (command prompt - cmd.exe)

C:\> dir /x
...
"My very long folder " Myv~1

C:\>rd Myv~1

Plan B: Delete using rd and quote the folder name: rd "My Folder " < note
the trailing space

Issue has been on the groups before. You can google to get better and more
detailed explanations (try "unable to delete" and "dir /x").
 
Back
Top