Annoying File won't Delete!?

  • beyournakama
  • Born
  • Born
  • beyournakama
  • Posts: 4

Post 3+ Months Ago

*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!!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

Sometimes putting the file in quotes gets around the invalid file problem. cd.. works in windows but in unix a space is needed between the cd and the two dots. It's
cd ..
not cd..

Also, another trick is cd docume~1 instead of cd documents and settings.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 53 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.