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

CreateDirectory Method

Location

My.Computer.FileSystem.CreateDirectory

Syntax

My.Computer.FileSystem.CreateDirectory(path)

path (required; String)

The path of the new directory to be created

Description

The CreateDirectory method creates a new empty directory.

Usage at a Glance

  • If the directory already exists, no error occurs.

  • Any nonexistent directories between the top of the file system and the destination directory to be created will also be created.

  • An exception is thrown if the path parameter is missing or invalid.

  • An exception is thrown if the user lacks sufficient file access permissions.

Related Framework Entries

  • Microsoft.VisualBasic.FileIO.FileSystem.CreateDirectory Method

  • Microsoft.VisualBasic.MyServices.FileSystemProxy.CreateDirectory Method

  • System.IO.Directory.CreateDirectory Method

See Also

CopyDirectory Method, CopyFile Method, DeleteDirectory Method, DeleteFile Method, FileSystem Object, MoveDirectory Method, MoveFile Method, RenameDirectory Method, RenameFile Method

Категории