Implemented in version 2.0
This method lets us check if a specified file exists. It returns a Boolean value -
if the file does exist and
if it doesn't. Note that if the file that you are checking for isn't in the current directory, you must supply the complete path.
In the following example the
method is used to check for a specific file before deleting it.
Set filesys = CreateObject("Scripting.FileSystemObject")
filesys.CreateTextFile "c:\somefile.txt", True
If filesys.FileExists("c:\somefile.txt") Then
Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.