Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel VB Language Reference > Siebel VB Language Reference >
RmDir Statement
This standard VB statement removes a folder.
Syntax
RmDir [drive:][\folder\]folder
Returns
Not applicable
Usage
The folder to be removed must be empty, except for the working ( . ) and parent ( .. ) folders.
The default folder cannot be removed. To remove the default folder, you must first make another folder current on the drive on which the folder to be removed resides.
Example
This example makes a new temporary folder in C:\ and then deletes it.
Sub Button_Click
Dim path as String
On Error Resume Next
path = CurDir(C)
If path <> "C:\" then
ChDir "C:\"
End If
MkDir "C:\TEMP01"
If Err = 75 then
Else
RmDir "C:\TEMP01"
End If
End SubSee Also
ChDir Statement
ChDrive Statement
CurDir Function
Dir Function
MkDir Statement
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel VB Language Reference Published: 18 June 2003 |