RmDir Statement

рдбрд╛рдЯрд╛ рдореАрдбрд┐рдпрдо рд╕реЗ рдореМрдЬреВрджрд╛ рдХрд┐рд╕реА рдбрд┐рд░реЗрдХреНрдЯреНрд░реА рдХреЛ рдорд┐рдЯрд╛рддрд╛ рд╣реИ.

Syntax:


ChDir Text As String

рдкреИрд░рд╛рдореАрдЯрд░

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

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.

Error codes:

5 Invalid procedure call

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err76 not found).

рдЙрджрд╛рд╣рд░рдг:


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