Discussion Locked

Directory name is invalid error

0 helpful
17 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Asking for assistance with the following Windows NT problem, but suspect same problem exists on Win 2K and XP.

Scandisk is finding errors and saving the files in the Found.000 and Found.001, Found.002, etc directories. Corrupted files are being saved and renamed to File001.chk, File002.chk, File003.chk, etc. under the found.000, Found.001, etc directories.

The problem is that I can not delete all the chk files. Some are giving me an error that the “Directory name is invalid”. This is confusing as these should be files and not directories as per normal scandisk functions. The funny thing is that these chk files have a folder icon ! and the properties of the chk file identify it as a directory. All this leads me to believethat the OS thinks that it is a directory where in fact it should be a file !? Hence the error “Directory name is invalid” actually would make sense.

I’ve attempted many approaches to resolve (refer to below) and also searched many a newsgroup and web sites for an answer with no luck. I have found a few other postings by others with a similar problem, but no answers. Yes, I’ve even checked Microsoft’s knowledgebase and TechNet.

- Tried to delete as local admin.
- Checked and set “Full Control” to permissions on the files.
- Tried deleting using NTFSPro
- Checked attributes and found they were set a system and read only but removed these attributes and still unable to delete.
- Renamed the chk files with no problem, but still unable to delete.
- Properties show CHK files as 0 bytes.
-

I need to identify the cause and resolution as I’ve run into this in trying to create standard images for use on our 400+ workstation network and I do not want every image to contain these rogue files / directories.

17 replies

by maxwell edison

The folders found.000 (and so on) contain files with extensions .chk

Those are hidden files that can't be deleted until the hidden attribute is turned off.

In a folder window such as C:\

Go to Tools - Folder Options.

In the View Tab there are a number of options that you can set.

"Show Hidden Files or Folders" - check on.

This will make the hidden files visible.

You should then be able to delete those files/folders.

Make sure you then uncheck that setting. (It's recommended to hide system files.)

by maxwell edison

By the way, after you delete all those .chk files, it may also be a good idea to delete other "junk" files such as temporary Internet files, temp files, backup files, etc. Then empty the recycle bin and run scan disk.

by dklippert

You can also use brute force by deleting them at a command prompt. Start up while holding down F8.
Just like in the old DOS days.

by harrybassett

I'm running Win NT (there is no F8 command prompt). I did access the NTFS file structure from a command prompt using NTFSPro but still received the same error message at the command prompt when I tried a Del or RD command.

by bigfootduck

I would say to try dos, great for this kind of problem. U know the dir and the names, should b ez enuff. <<

by harrybassett

Command prompt from within Windows NT as well as using boot disk (Lynx & NTFSPro) didn't help. Still can not delete the dir /folders.

by gigelul

If these don't worked then maybe the HDD is bad. Save all needed files and run a low level utility from manufacturer. If there are some bad clusters these utilities can fix/maybe recover these bad locations. Or buy a new HDD.

by maxwell edison

At this point it sounds as though the file really is gone - thus it can’t de deleted, but it’s still listed in the MFT (Master File Table). So you may have a corrupt MFT to deal with.

Look at these articles:

“How NTFS Reserves Space for its Master File Table (MFT)”

http://support.microsoft.com/default.aspx?scid=KB;EN-US;q174619&LN=EN-US

“NTFS Master File Table (MFT)”

http://www.ntfs.com/ntfs-mft.htm

“When you attempt to open, delete orrename a file or folder using Windows NT Explorer, File Manager or a command prompt, you may receive one of the following error messages:

:\ is not accessible

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q176646&

More related articles:

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q176646&

http://www.pcguide.com/ref/hdd/file/ntfs/archMFT-c.html

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q246026&

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q120716

(REMOVE SPACES from the pasted URLs)

Or you may want to do your own search for methods to repair a corrupted MFT.

This discussion is closed to new replies.