When deleting some files or folders from the user profile, these error messages appear:
- cannot delete file: cannot read from the source file or disk
- window cannot read from this disk. The disk might be corrupted, or it could be using
While you made sure the files are not in use. You double checked access right, and you made sure you have permissions on the file. You also check if the disc has physical damage.
It seems that this is caused by file/folder names ending with . (a dot)
There is a easy way to fix this using dos commands, the latest version of Farm Cleaner also deletes these misnamed files.
More information on Farm Cleaner can be found here.
Use this command line to delete a profile folder which contains misnamed files:
C:\> rd /s “\\?\c:\documents and settings\profilename”
More information can be found here: http://blogs.msdn.com/bclteam/archive/2008/06/10/long-paths-in-net-part-3-of-3-kim-hamilton.aspx on msdn