Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

MkDir Procedure

Class

Microsoft.VisualBasic.FileSystem

Syntax

MkDir (path)

path (required; String)

The name of the directory to be created

Description

The MkDir procedure creates a new directory on a drive.

Usage at a Glance

  • path can be a relative or absolute path, either of a new local or remote directory.

  • An error occurs if the specified directory already exists.

  • MkDir does not automatically make the new directory the current working (default) directory.

Version Differences

Visual Basic 2005 includes a My.Computer.FileSystem.CreateDirectory method that provides similar functionality.

See Also

RmDir Procedure

Категории