RmDir (statement)

Syntax RmDir dir$
Comments Removes the directory specified by the String contained in dir$.
Example This routine creates a directory and then deletes it with RmDir.
Sub Main()
  On Error Goto ErrMake
  MkDir("test01")
  On Error Goto ErrRemove
  RmDir("test01")
ErrMake:
  MsgBox "The directory could not be created."
  Exit Sub
                           
ErrRemove:
  MsgBox "The directory could not be removed."
  Exit Sub
End Sub
See Also ChDir (statement); ChDrive (statement); CurDir, CurDir$ (functions); Dir, Dir$ (functions); MkDir (statement).