Removes an existing directory or folder.
RmDir path |
The required argument path is a string, defining the directory or folder
to be removed. It may contain a drive name. If the drive is not specified, the
RmDir statement removes the directory or folder on the current drive.
An attempt to remove with RmDir a directory or folder which contain files will generate an error. To delete all files from directory or folder you should use the Kill statement.
In this example the RmDir statement is used to remove an existing directory or folder.
' Assume that MYDIR is an empty directory or folder. RmDir "MYDIR" ' Removes MYDIR. |
See Also |
ChDir Statement, MkDir Statement , Kill Statement, CurDir Function |