ROM-DOS Internal Commands 4-61
RMDIR (ReMove DIRectory)
Internal Command
The RMDIR command removes (deletes) a specified empty subdirectory.
Syntax
RMDIR [drive:][path]subdir
RD [drive:][path]subdir
subdir
is the name of the subdirectory being deleted. Note that RD may
also be used.
Remarks
If no drive or path is specified, RMDIR looks for the specified
subdir
within (one level below) the current default directory. If a drive or path is
specified, everything specified must exist or ROM-DOS displays an error
message.
RMDIR does not remove a subdirectory unless it is empty. An error
message is displayed when you attempt to remove a subdirectory that
still contains files or other subdirectories.
Example
RD TOOLS
Removes the TOOLS subdirectory from the current directory, assuming
TOOLS is an empty directory.