Hi, Brian.
When ChkDsk finds a "lost chain" that looks like a directory, it gives the
lost chain the name FOUND.001; later such lost chains are named FOUND.002,
etc. If you recognize the filenames in FOUND.001, you may be able to rename
the directory and then Move it back into the parent directory where it
belongs. In most cases, though, the information is incomplete or wrong - in
other words, useless. It may be salvageable, but at such a high cost of
time and effort that it should be considered a total loss. Since ChkDsk has
already give it its best shot, further iterations of ChkDsk are not likely
to do any good.
From the Command prompt, type: dir foo*.* /x. The /x switch should produce
an extra column in the directory listing, showing the Short File Name (SFN),
also known as the 8.3 filename, before the LFN. Even short filenames are
considered LFNs if they contain any characters (including spaces) that are
not allowed in a valid MS-DOS filename. Then Remove the SFN.
Remember that Del deletes FILES; rd (or rmdir) removes DIRECTORIES. So the
proper command is: rd foo
If that doesn't work, then isolate this directory in a parent directory that
contains nothing else. Either Move foo or, if you can't to that, then move
everything except foo from that directory to a temporary directory. Then
remove foo's parent directory completely with: rd <parent of foo> /s. The
/s switch for rd removes the named directory and everything within it:
subdirectories, files and all - including foo.
In the "DOS" window, you can see a mini-Help file showing the switches
available for each command by typing the command followed by /?. So, type
dir /? or rd /? to see the switches and what each one does.
If that doesn't work for you, please post back with details of what you
tried and what results you saw.
RC
--
R. C. White, CPA
San Marcos, TX
(E-Mail Removed)
Microsoft Windows MVP
"Brian Kelly" <(E-Mail Removed)> wrote in message
news:HZOdnUL-R6-(E-Mail Removed)...
>I have a directory entry that appears to have somehow become corrupted and
> cannot be deleted or other wise affected.
>
> It was created by CheckDsk at some point. The only thing I can do to it
> is
> rename it (which I have, to "foo"). Anything else causes an error.
>
> --Trying to delete in Windows Explorer returns: "Cannot delete foo: The
> directory name is invalid."
> --Trying to delete from a command prompt returns: "The directory name is
> invalid."
> --Trying to access the directory in Windows Explorer returns: "D:\foo is
> not accessible. The directory name is invalid."
> --Trying to change to the directory via command prompt (CD) returns: "The
> directory name is invalid."
>
> I have run another check disk, to no avail.
>
> Any thoughts?
>
> Thanks,
> Brian