Unable to delete a max lenght file ending with a space



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").

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question