View Full Version : how to delete a folder with an invalid character in win2k
09-25-2003, 10:01 AM
some programm managed to create a folder on my HD with a dot "." at the end of the filename which is something that win2k doesnt like at all.
i can neither access the folder "the folder was renamed or removed" or delete it "cannot delete file. cannot read from the source file or disk".
googling didnt give me a solution either.
anyone have a clue how to get rid of the folder ?
09-25-2003, 10:29 AM
did you try renaming it in the command prompt?
09-25-2003, 10:37 AM
yeah. tried renaming, moving and deleting in the command prompt. nothing works..
even tried downloading old version of deltree, didnt work either. trying to remove the directory containing the illegal directory doesnt work either...
09-25-2003, 11:13 AM
did you try some software solutions? like killitfile deleter...try that out, not sure if it works for folder tho.
here's the link
09-25-2003, 03:37 PM
Check the attributes of the file at the DOS prompt witht he "attrib" command.
09-26-2003, 12:07 AM
I was in a similar situation a few months ago. One of our linux users connected up to my machine and created a folder on the desktop with like 255 characters off al sorts. Needless to say i couldnt delete it. The only way that i saw possible was for him to log back in and remove it. Which he didnt and he even had a few problems getting rid of it as well.
So maybe you could try getting a linux or mac computer to network onto your machine and try to delete the folder for you.
09-26-2003, 12:12 AM
this may sound stupid, but have you tried to cut and paste it on to a floppy disk?
09-26-2003, 07:17 AM
all no good. folder is still there and refuses to be moved or renamed or anything..
09-26-2003, 07:28 AM
have you tried:
where the "?" is the illegal character.
 I guess in this case it would be "rd", not sure if that works with directories.
10-16-2003, 11:06 AM
i ignored the folder for a while but its still there. all the methods above didnt work at all.
so... anyone have any other ideas ???
10-16-2003, 11:10 AM
reformat. Drastic but will work.
10-16-2003, 01:54 PM
If you riht click on the folder an look at "Properties" is it marked as read only? Did you run the attrib command from a DOS prompt? You said, "I did all those things" but the attrib command is a query in addition to an altering command. What was the result of the query? What attributes does the file show?
10-16-2003, 04:23 PM
windows explorer properties see below...
dos attrib just gives me a "file not found" error..
10-17-2003, 06:56 PM
On the odd chance the file is not on a NTFS drive, you can try Knoppix (www.knopix.org). If you are not familiar, Knoppix is a distro of Linux that runs directly from a cd.
I encountered something similar when trying to delete an install of WinXP. Formatting the drive was my solution.
10-17-2003, 09:11 PM
yeah I know what you mean, got myself a nice dir called /lpt/ a few weeks ago... same prob ^^
I have the anwser somewhere, Ill try to find it for you now...
Similar things will happen with hackers creating dirs on your ftp with /com1 /, /ltp /, /aux / and so on
EDIT: Found it (dos prompt commands):
rmdir -s "//C/Program Files/Subdir/COM1"
rmdir -s "\\C\Program Files\Subdir\COM1"
the // will make it accept all chars, even illegal ones like the dot on the end
Good luck with it (hope this will help you)
10-17-2003, 09:18 PM
I once had a similar problem then I restarted and tried to delete it and it worked. Have you restarted lately?
01-16-2006, 05:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.