MkDir Statement

Creates a new directory or folder.

Syntax

MkDir path

Remarks

The required argument path is a string specifying the directory or folder to be created. It can contain the drive name. If drive is not specified, MkDir created the directory or folder on the current drive.

Example

In this example the MkDir statement is used to create a directory or folder. If the drive is not specified, the new directory/folder will be created on the current drive.

MkDir "MYDIR" ' Creates new directory or folder.

 

See Also

ChDir Statement, RmDir Statement , CurDir Function