bas7advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
RMDIR Statement Details
  ◄Syntax►  ◄Details►  ◄Example►                 ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
RMDIR removes an existing directory.
 
RMDIR pathname$
    ■ The argument pathname$ is the name of the directory that is to
      be deleted. It must be a string expression of fewer than 64 characters.
 
Usage Notes
    ■ The directory to be removed must be empty except for the working
      directory ('.') and the parent directory ('..'); otherwise, BASIC
      generates one of two error messages, either "Path not found" or
      "Path/File access error."
    ■ RMDIR works like the DOS command of the same name. However, the
      syntax in BASIC cannot be shortened to RD, as it can in DOS.