Deleting corrupted files with special characters in their file names
by Chris W » Wed, 23 Jun 2004 00:02:35 GMT
I after a SD card was inadvertently removed from the UPB reader, several
files were corrupted and now will not delete. The error message I get
when trying to delete them is
"Can not delete file.. Can not read from the source file or disk."
when I go to the command prompt and try to do a del . or a del *.* I get
this error
"system can not find the file specified
the filename directory name or volume label syntax is incorrect."
I had a similar problem before and found a solution on google but for
some reason I am not having much luck doing that today.
--
Chris W
Bring Back the HP 15C
http://www.**--****.com/
Not getting the gifts you want? The Wish Zone can help.
http://www.**--****.com/
Re: Deleting corrupted files with special characters in their file names
by Jerold Schulman » Wed, 23 Jun 2004 00:24:47 GMT
On Mon, 21 Jun 2004 10:02:35 -0500, Chris W < XXXX@XXXXX.COM >
Try the technique from tip 167 in the 'Tips & Tricks' at http://www.**--****.com/
See tip 5533.
encapsulate the path in quotes.
Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.**--****.com/
Re: Deleting corrupted files with special characters in their file names
by Chris W » Wed, 23 Jun 2004 00:56:36 GMT
that looks similar to what I did before but it's not woking here. I
can't type in or copy and past a file name because there are mostly
spaces and just a few other odd characters. The only way I have found
to give me the real name of the file is using cygwin to list the folder
contents and this is what I get. . .
$ ls
ls: t: No such file or directory
ls: N: No such file or directory
ls: + vk
: No such file or directory
ls: Descript.ion: No such file or directory
ls: : No such file or directory
ls: s: No such file or directory
ls: i: No such file or directory
ls: d: No such file or directory
ls: o: No such file or directory
ls: (R: No such file or directory
ls: @+?.: No such file or directory
when I do an rm * I get this. . .
rm: cannot remove ` ': No such file or directory
rm: cannot remove ` \241;@\356%+\001.': No such file or directory
rm: cannot remove `(\aR': No such file or directory
rm: cannot remove `+\240\240\240vk\n': No such file or directory
rm: cannot remove `Descript.ion': No such file or directory
rm: cannot remove `N': No such file or directory
rm: cannot remove `d': No such file or directory
rm: cannot remove `i': No such file or directory
rm: cannot remove `o': No such file or directory
rm: cannot remove `s': No such file or directory
rm: cannot remove `t': No such file or directory
--
Chris W
Bring Back the HP 15C
http://www.**--****.com/
Not getting the gifts you want? The Wish Zone can help.
http://www.**--****.com/
Similar Threads:
1.Delete File with special characters in the name
I have several files that were generated through a Raid recovery process.
Now I cannot delete them because they have special characters in the name.
For example: "D:\deleteme\;1 R'tfA"
Anyone know how to delete them? Thanks in advance.
2.file name with special characters
There are some file with name special characters.
i cannot delete them by file manager (XP)
is there any other way to do that?
Thanks.
Tony
3.Special characters in file names?
Hello,
I was trasnferring files from a MAC server this weekend and had to correct
tons of file names including ones that appeared as though they had boxes in
the file names, ones ending with spaces, ones with special symbols. I
renamed them all because the copy process would fail on them. Is there a
way to allow for any of these in case I don't have time in the future to
modify them on the mac server?
Thanks