Folder ends with a space

  • Thread starter Thread starter Huy Huynh
  • Start date Start date
H

Huy Huynh

Hello,
Somehow I have a folder ending with a space character, or
something displayed as a space. I've tried several ways
to delete this folder but received the same error: cannot
find specified file/folder.
It's not possible for a folder or file ending with a
space, is it? I've tried to create a file name with a
space at the end, and the name has always been trimmed.
Any help would be appreciated.
 
I entered the following command (I renamed all folders of
the path into p's)

rd "\\.\D:\p\p\p\p\Ulead MediaStudio Pro 6.5 "

and still received the same error.
I can enter that folder (and manipulate files inside it),
so I used IE to enter it and then copy-and-pasted the
whole path into the command-line window. Thus, I don't
know whether the last character in the folder's name is a
space or not (and by doing that I shouldn't have to care,
right?). Is there any chance copying and pasting doesn't
work in this case? How can I figure out what exactly that
last character is?
I really appreciate your help.
 
Well the rd command should have worked, but here's something else to try:
BCWipe has been great to me in the past with files and directories that
couldn't be deleted.

Download the BCWipe 3.05 trial and install it. Right click on the folder
you would like to be rid of and choose 'delete with wiping'. Go to the
advanced options and just set it to do one pass, uncheck 'wipe unused space
in swap file', as well as 'wipe empty directory entries' and 'view this
file..." and then click 'Yes to All' and see if that removes the folder for
you.

--
=============================================
Matt Coy, MCSE
Microsoft Aficionado
Associate Expert
Expert Zone -
=============================================
 
Back
Top