FreeDOS help system (hhstndrd 1.0.8 en)[rd]

Command: rd

RD removes (deletes) an empty directory.


RD [drive][path]pathname RD [/?] 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 RD 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 RMDIR instead of RD. RD 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. RD is a command internal to and needs no other file in order to work.


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

See also:

attrib cd cdd chdir del deltree erase md mkdir rmdir 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.