Creates a new directory or folder.
Public Sub MkDir(ByVal Path As String)
| Exception type | Error number | Condition |
|---|---|---|
| 52 | Path is not specified or is empty. | |
| 75 | Directory already exists. |
This example uses the MkDir function to create a directory or folder. If the drive is not specified, the new directory or folder is created on the current drive.
MkDir("C:\MYDIR") ' Make new directory or folder.
ChDir Function | CurDir Function | RmDir Function |