Your Ad Here

Friday, February 20, 2009

Annoying File won't Delete!?

*This is the message you will see "Cannot delete file: Cannot read from the source file or disk".

*The files properties to check permissions presented a very blank properties dialog.

*Its not a virus or anything because antivirus, anti-spyware, adware and even the CHKDSK wont work.

*The filename ended with a dot. For example "C:Documents and SettingsuserDesktopmyfile.". As far as Windows is concerned this is an invalid file name.

*how did this file get created? The file was on a file share which had been accessed by a Mac user. Macs tend to write all sorts of metadata to extra ._DSStore files and suchlike and had left this file behind.

*How to solve it? By prefixing your file paths with ?, (ie. C:Documents and SettingsuserDesktopmyfile.. becomes ?C:Documents and SettingsuserDesktopmyfile..)

*Using a command prompt I was able to delete the file using:
del "?C:Documents and SettingsuserDesktopmyfile.."

*If it is a folder/directory:
change "del" to "rd /s"

*How to use command prompt?
C:Documents and SettingsuserDesktopmyfile..
type:
c:
cd Documents and Settings > cd user > cd desktop etc.
cd.. == means back

Hope its Help!!

Read More...
Your Ad Here

No comments: