RmDir

System function.

The RmDir function deletes a directory.

Syntax

RmDir(<directory_name>)
or
ret=RmDir(<directory_name>)

Parameters

<directory_name>, string, name of the directory to delete.

Return value

Ret, numeric return code. When the deletion is successful, the function returns 0, otherwise use this return code for Error Handling.

Remarks

The function works like the DOS statement RMDIR.

See also

MkDir

Examples

 

RmDir("c:\text")

RmDir(direct$)