<-- Previous || Up || Next -->

File Exists Function
File Operations Class

Public Function FileExists( _
      ByVal vFileName As Variant _
    , Optional ByVal vAttributes As Variant _
    ) As Boolean

Determine if the named file exists.
Function returns True if the file exists.
Function returns False if the file does not exist OR there was an error.

Examples:
    FileExists("C:\COMMAND.COM") = True
    FileExists("C:\FILE0000.CHK") = False
See also:
    Dir$ Function (Visual Basic)
vFileName: Name of the file or directory that will be checked for existence. Function returns False if vFileName is Null or cannot be fixed-up to a String. vFileName can contain the DOS Wildcard characters "*" and "?".
vAttributes: One or more of the vb constants vbNormal, vbHidden, vbSystem, vbVolume, and vbDirectory describing the allowable types of files. vAttributes defaults to vbNormal if it is missing or Null or cannot be fixed-up to a number.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.