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

DirectoryExists Method

Location

My.Computer.FileSystem.DirectoryExists

Syntax

Dim result As Boolean = _ My.Computer.FileSystem.DirectoryExists(path)

path (required; String)

The full path to a directory

Description

The DirectoryExists method indicates whether the supplied directory path exists (true) or not (False).

Usage at a Glance

This method returns False if the user lacks sufficient file system access privileges.

Related Framework Entries

  • Microsoft.VisualBasic.MyServices.FileSystemProxy.DirectoryExists Method

  • Microsoft.VisualBasic.FileIO.FileSystem.DirectoryExists Method

  • System.IO.Directory.Exists Method

See Also

FileSystem Object, FileExists Method

Категории