MLRCL‖

Zctny‖RmDir Statement

VRYbm‖Deletes an existing directory from a data medium.

FVEx2‖Syntax:

MZAxr‖ RmDir Statement diagram


uE7FC‖RmDir Text As String

WADQ4‖Parameters:

ZQj4y‖ Text: Any string expression that specifies the name and path of the directory that you want to delete. You can also use URL notation.

3SCF3‖If the path is not determined, the RmDir Statement searches for the directory that you want to delete in the current path. If it is not found there, an error message appears.

SEjHR‖Error codes:

5 Invalid procedure call

76 Path not found

EFSA4‖Example:


Sub ExampleRmDir
    MkDir "C:\Test2"
    ChDir "C:\test2"
    MsgBox Curdir
    ChDir "\"
    RmDir "C:\test2"
End Sub