Command: rd
RD removes (deletes) an empty directory.
Syntax:
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.
Options:
/? Shows the help
Comments:
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 command.com and needs no other file
in order to work.
Examples:
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 © 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.