Rmdir--Notes
Cannot delete directory with hidden or system files
You cannot delete a directory that contains files, including hidden or system
files. If you attempt to do so, Windows NT displays the following message:
The directory not empty
Use the dir command to list hidden and system files and the attrib command to remove hidden and system attributes from files. For more
information, see those commands.
Using the backslash character with the path parameter
If you insert a backslash (\) before the first directory name in path,
Windows NT treats the directory as a subdirectory of the root directory--regardless of
your current directory. If you do not insert a backslash before the first
directory name in path, Windows NT treats the directory as a subdirectory of the
current directory.
Deleting the current directory
You cannot use rmdir to delete the current directory. You must first change to a different
directory (not a subdirectory of the current directory) and then use rmdir with a path. If you attempt to delete the current directory, Windows NT
displays a message in the following format:
The process cannot access the file because it is being used by another process.
More Information About Rmdir
Rmdir--Examples
Rmdir