G
Guest
Okay...I've searched high and low and cannot find an answer to this problem. I have a folder that has a trailing space at the end of the name (I have no idea how it got there). I cannot delete it. I am using Xp Pro with sp1 installed. The drive in question uses the NTFS file system partition. The Knowledge data base says; Microsoft Knowledge Base Article - 31522
If the name in the file system appears as a directory, you may be able to delete any directory by using a command like this
RD \\.\drive letter:\path\directory nam
For example
RD \\.\c:\somedir\au
This is obviously from the cmd prompt and this does not work.
I can see the folder in explorer and I can see the folder when I do a dir at the command prompt. The commands above and well as any other command from the command prompt just give me a "Cannot find the specified File" huh? I'm using the RD command so why would it say cant find the file? If I try to right click and delete the folder in explorer it says " Cannot delete file: Cannot read from the source file or disk." Again why does it say file when Im trying to delete a folder? There is nothing in the folder. The folder attributes are correct. The folder permissions are correct. The reason I know it has a trailing space is because when I do a "dir /w" at the cmd prompt the folder shows up in brackets and there is a space before the end bracket. The rest of the folders have no space in the brackets.
ok you pros!!! what can I do???
Att
If the name in the file system appears as a directory, you may be able to delete any directory by using a command like this
RD \\.\drive letter:\path\directory nam
For example
RD \\.\c:\somedir\au
This is obviously from the cmd prompt and this does not work.
I can see the folder in explorer and I can see the folder when I do a dir at the command prompt. The commands above and well as any other command from the command prompt just give me a "Cannot find the specified File" huh? I'm using the RD command so why would it say cant find the file? If I try to right click and delete the folder in explorer it says " Cannot delete file: Cannot read from the source file or disk." Again why does it say file when Im trying to delete a folder? There is nothing in the folder. The folder attributes are correct. The folder permissions are correct. The reason I know it has a trailing space is because when I do a "dir /w" at the cmd prompt the folder shows up in brackets and there is a space before the end bracket. The rest of the folders have no space in the brackets.
ok you pros!!! what can I do???
Att