Data Type: FileSystemObject object
A FileSystemObject object.
Data Type: String
A complete path to the file.
Determines if a given file exists.
True if the
file exists or is connected to the machine, and returns
False if not.
FileSpec can’t contain wildcard
FileSpec can include either an
absolute or a relative path—that is, a path that is relative to
the current folder. The current folder is
the folder in which the script is running, or the folder
specified in the “Start in” text box of the shortcut used to
launch the script. The symbol to indicate the parent of the
current folder is (
symbol to indicate the current folder is (
FileSpec does not include a path, the
current folder is used.
If the user has adequate rights,
FileSpec can be a network path or share
name. For example:
If ofs.FileExists("\\TestPath\Test.txt") Then