Siebel VB Language Reference > VB Language Reference >
This standard VB statement removes a folder.
(Optional) The name of the drive from which the folder is to be removed, as a letter, or a string expression representing the drive name
If the folder is to be removed from a folder other than the default folder of the specified drive (or the default drive if none is specified), the path to the folder to be removed
The name of the folder to be removed
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.
This example makes a new temporary folder in C:\ and then deletes it.
Dim path as String
On Error Resume Next
path = CurDir(C)
If path <> "C:\" then
If Err = 75 then