FolderExists Method |
Description
Returns True if the specified folder 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 folder exists iExists = fso.FolderExists(UCODE$("C:\MyFolder"))
|