Re: Cannot rename file - Cannot read from source file or disk

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Dave Patrick (mail_at_NoSpam.DSPatrick.com)
Date: 08/01/04


Date: Sun, 1 Aug 2004 16:19:36 -0600


>From a command prompt try;

 del \\.\Drive:\directory\filename
(Note: the period between \\ and \)

Also

dir /x
and try deleting them using their 8.3 short names.

-- 
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"Stefan Weiss" wrote:
| Hi.
|
| I have accidently created a directory that cannot be deleted or renamed.
| The directory was created by the "CD'n'Go!" CD ripper application.
| Unfortunately, the CDDB info for this album was incomplete, and instead
| of a directory called
|   "System Of A Down - System Of A Down"
| I was left with this:
|   "System Of A Down - "
|
| I can open the directory in Windows Explorer, and I can open, delete, and
| rename the files in it, but I when I try to delete or rename the
directory,
| I get the following error message:
|
|   "Cannot rename file - Cannot read from source file or disk"
|
| The directory is on an NTFS partition, and I currently use Windows 2K
| (fully patched). A complete file system check found no errors, and the
| problem remained.
|
| When I open the "Properties" window for this directory, it contains no
| information at all (no name, type of file, or dates).
|
| I tried to delete the directory from cmd.exe, which did not work:
|
| ---------------------------------------------------------------------
|
| I:\ripped>dir
|  Volume in drive I is Fundus
|  Volume Serial Number is F445-45DF
|
|  Directory of I:\ripped
|
| [..]
| 04.03.2004  22:37       <DIR>          System Of A Down -
| [..]
|                0 File(s)              0 bytes
|              170 Dir(s)   2.155.798.528 bytes free
|
| I:\ripped>ren "System Of A Down - " foo
| The system cannot find the file specified.
|
| I:\ripped>del "System Of A Down - "
| Could Not Find I:\ripped\System Of A Down -
|
| I:\ripped>dir "System Of A Down - "
|  Volume in drive I is Fundus
|  Volume Serial Number is F445-45DF
|
|  Directory of I:\ripped
|
| File Not Found
|
| ---------------------------------------------------------------------
|
|
| Then I tried to delete it from the bash (I have Cygwin installed):
|
| ---------------------------------------------------------------------
|
| spaceman@tigger /cygdrive/i/ripped $ ls -la
| ls: System Of A Down - : No such file or directory
| total 0
| d---------+ 170 Administ None          76k Aug  1 05:22 .
| drwxrwxrwx+  15 Administ Administ      28k Aug  1 18:58 ..
| [...]
|
| spaceman@tigger /cygdrive/i/ripped $ rm -r System\ Of\ A\ Down\ -\
| rm: cannot remove `System Of A Down - ': No such file or directory
|
| spaceman@tigger /cygdrive/i/ripped $ mv System\ Of\ A\ Down\ -\  foo
| mv: cannot stat `System Of A Down - ': No such file or directory
|
| spaceman@tigger /cygdrive/i/ripped $ ls -la Syst*
| ls: System Of A Down - : No such file or directory
|
| ---------------------------------------------------------------------
|
|
| Any help or suggestions would be greatly appreciated.
|
|
| cheers,
| stefan


Relevant Pages

  • Re: Outlook express error
    ... Once the read only setting has been removed, you can try Outlook express ... > cannot rename this file access is denied. ... >> Closed by Windows ... Error Message If the Folders.dbx File Is Missing or Damaged ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Error Message when trying to open Word 2000
    ... "John B." ... - I am using Windows ME so I do not have Compatibility ... :>However if you want to rename the old key back then I ... :>add-ins, Normal.dot, Registry, etc. ...
    (microsoft.public.word.application.errors)
  • Re: Lost document When I Changed Its Name Please Help!
    ... those with a file extension associated with Word. ... > rename the document in Windows Explorer. ... >>to open it by double-clicking in an Exploring window. ...
    (microsoft.public.word.application.errors)
  • Re: Great SWT Program
    ... a good tutorial on Unix CLI tools? ... command there, ... then rename everything in the search scope with the CLI, ... I'd have to boot up a Windows system and try stuff, ...
    (comp.lang.java.programmer)
  • Re: Lost document When I Changed Its Name Please Help!
    ... rename the document in Windows Explorer. ... but it didn't show up in Word or in Explorer. ... >extension when you rename the file. ...
    (microsoft.public.word.application.errors)