FreeDOS help system (hhstndrd 1.0.8 en)[rmdir]

Command: rmdir

RMDIR removes (deletes) an empty directory.


RMDIR [drive][path]pathname RMDIR [/?] drive The drive letter where you want to delete a directory, e.g. C: path The pathname which already exists, e.g. if you are already in a directory. pathname The name of the directory you want to delete, e.g. \example.


/? Shows the help.


For performance reasons RMDIR only overwrites the first letter of each directory name / filename by a '?'. See DEL or ERASE or DELTREE for more information. You can also use RD instead of RMDIR. RMDIR will only delete empty directories (no files or directories inside)! Do not forget to remove hidden files or directories! In DOS directories are shown in capital letters and have NO ending. RMDIR is a command internal to and needs no other file in order to work.


You have an EMPTY directory C:\test\test2 rmdir C:\test\test2

See also:

attrib cd cdd chdir del deltree erase md mkdir rd undelete ------------------------------------------------------------------------------ Copyright (C) 1998 Jim Hall, updated 2007 by W. Spiegl. This file is derived from the FreeDOS Spec Command HOWTO. See the file H2Cpying for copying conditions.