FileExists Method |
Description
Returns True if the specified file exists; False if it does not.
PowerBASIC Syntax
Arguments
Return Value
Boolean. VARIANT_TRUE or VARIANT_FALSE.
Example [PowerBASIC]
#INCLUDE "windows.inc" #INCLUDE "scrrun.inc"
DIM fso AS IFileSystem DIM iExists AS INTEGER
' Create an instance of the FileSystemObject fso = NEWCOM "Scripting.FileSystemObject" ' Check if the file exists iExists = fso.FileExists(UCODE$("C:\MyFolder\Test.txt"))
|