Bookshelf Home | Contents | Index | Search | PDF |
Siebel VB Language Reference > Siebel VB Language Reference >
MkDir Statement
This standard VB statement creates a new folder.
Syntax
MkDir [drive:][\folder\]folder
Returns
Not applicable
Usage
The drive: argument is optional. If drive: is omitted, MkDir creates the new folder on the current drive. If the drive: argument is used, it must include the colon.
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
RmDir Statement
Bookshelf Home | Contents | Index | Search | PDF |
Siebel VB Language Reference Published: 18 June 2003 |