CreateDirectory Method


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




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net