Share this page 

Have a FileExists function with wildcardTag(s): PFC


[boolean of_FileExists(string as_file)]

Integer li_entries
n_cst_filesrvwin32 lnv_fsrv
n_cst_dirattrib   lnv_dirlist[]

lnv_fsrv = CREATE n_cst_filesrvwin32
li_entries = lnv_fsrv.of_DirList(as_file, 0, lnv_dirlist)
DESTROY lnv_fsrv

RETURN (li_entries > 0 )