Why am I getting "File Not Found" when typing "dir" in the command prompt?

4

On my Windows XP machine, I type dir into the command prompt in a specific directory. It starts to list a bunch of files but then pauses and then shows File Not Found.

Does anyone know why that would happen and how to fix it?

leora

Posted 2011-08-20T21:07:55.873

Reputation: 5 353

3It would help to know which directory you were in. – ChrisF – 2011-08-20T21:09:16.223

Have you run a disk check to see if there is file-system corruption? (c:\> chkdsk) – Ƭᴇcʜιᴇ007 – 2011-08-21T04:47:32.970

-1 You should amend the title, because the title reads as an extremely silly question. Whereas the question is actually indicative of some serious/actual problem. Some people may know the answer but not click on your question because it looks like you're asking something very obvious. Why does DIR say "file not found" obvious answer because no files in the directory. You should amend the title – barlop – 2011-08-23T09:38:17.293

Answers

6

If there is a corrupt entry in directory list, an error might occur. Just try again and try to find where it is aborted. Use Explorer instead of command prompt and examine the file list. Sometimes protected files -viruses/antiviruses and Sony do that- can't be recognized by the filesystem.

Probably you can't copy or delete ALL files in that directory. If they are not important try to delete all files. At the end you might find the "dirty" entry, after delete all clear files/dirs.

Nime Cloud

Posted 2011-08-20T21:07:55.873

Reputation: 923

0

Does it stop at the same spot? If so, hdd is failing

If it stops at random points, try dir /a

Canadian Luke

Posted 2011-08-20T21:07:55.873

Reputation: 22 162

1Agreed, search in other sorted ways, dir /oen But do run a check drive on the disk, when you can accept the downtime. – Robert Kerr – 2011-08-20T21:53:22.930