Implemented in version 2.0
file [, force]
This method is used to delete a specified file or files (using wildcards).
The optional force parameter returns
a Boolean value - True allows files with read-only attributes to
be deleted, while False (default) does not. Trying to delete a
read-only file without setting force
to True will return an error.
Note that an error also occurs if you try to delete a file that doesn't
Set filesys = CreateObject("Scripting.FileSystemObject")
filesys.CreateTextFile "c:\somefile.txt", True
If filesys.FileExists("c:\somefile.txt") Then
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.