Invalid path, not directory, or directory not empty

Microsoft MS-DOS

Severity: Minor

What it means

The RMDIR command cannot remove the directory, because one of the names in the path is incorrect, does not exist, or still contains files.

Affected Models

  • IBM PC compatibles running MS-DOS

How to Fix It

  1. Check the path's spelling.

  2. Delete all files and subdirectories in it first.

    DIR doesn't show hidden files: in MS-DOS 5 and later, DIR /A does.

  3. Is it the current directory?
    Leave it first with CD .., as MS-DOS doesn't remove the directory you are in.