Directory.Exists Method


Directory.Exists Method

Class

System.IO.Directory

Syntax

     Dim result As Boolean = Directory.Exists(path) 


path (required; String)

The path of the directory whose existence is to be determined

Description

The Exists method indicates whether a given directory exists (true) or not (False).

Usage at a Glance

  • path can be either an absolute path or a relative path from the current directory.

  • path can be either a path on the local system, the path of a mapped network drive, or a UNC path.

  • path cannot contain wildcard characters.

Version Differences

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




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