I have a bunch of folders on my hardrive that have trailing spaces in them (I have no idea how they got there). I need to rename and/or delete them, but Windows won't allow me to do this. Is there a way around this problem?
I've tried to delete it via the commandline, but that did not work.
I'm running Windows XP, and it's an NTFS drive.
Answer
First try some quoting:
rd "my folder "
Then UNC paths:
rd "\\.\C:\temp\my folder "
Then try adding a trailing [back]slash:
rd "my folder \"
rd "\\.\C:\temp\my folder \"
Then 8.3 names (if they are enabled on your system):
rd myfold~1
Then a Linux LiveCD:
rmdir "/media/blahblah/temp/my folder "
No comments:
Post a Comment