RMDIR

Format

RMDIR string1

Description

This statement will delete an empty directory from disk. String1 should contain the name of the directory to delete. If ASIC is unable to delete the directory, it will set the System ERROR variable. A list of ERROR codes is listed in the Error Messages Chapter of the ASIC Manual.

Example

RMDIR "C:\WORK\TEST"
IF ERROR = 0 THEN SUCCESS:
After execution of this code, the directory TEST under directory WORK will be deleted (if it had no files or subdirectories in it, and if it is not the current directory for drive "C").

See Also

  • MKDIR
  • CHDIR