View Single Post
  #1 (permalink)  
Old 02-18-2009, 12:11 PM
uzumakiluffy's Avatar
uzumakiluffy uzumakiluffy is offline
WebProWorld New Member
 
Join Date: Jan 2009
Posts: 10
uzumakiluffy RepRank 0
Smile Annoying File won't Delete!?

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

*The file’s properties to check permissions presented a very blank properties dialog.

*It's not a virus or anything because antivirus, anti-spyware, adware and even the CHKDSK won't work.

*The filename ended with a dot. For example "C:\Documents and Settings\user\Desktop\myfile.". 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 Settings\user\Desktop\myfile.. becomes \\?\C:\Documents and Settings\user\Desktop\myfile..)

*Using a command prompt I was able to delete the file using:
del "\\?\C:\Documents and Settings\user\Desktop\myfile.."

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

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

Hope its Help!!
Reply With Quote