I believe the FSIZE() function would work as well. The ADIR() function is a better choice if you are going to be looking at multiple files within a specified directory. When using FSIZE() to find the filesize of a specified file, SET COMPATIBLE must be set to ON.
Just some small corrections on the code Marsh posted:
** Incorrect
cFilename = "c:\winnt\system32\vfp6run.exe)
if ADIR(arArrayName, &cFilename.) = 1
?ADIR(2)
ENDIF
** Good
cFilename = "c:\winnt\system32\vfp6run.exe"
if ADIR(arArrayName, cFilename) = 1
?arArrayName(2) && or more clearly arArrayName[1,2]
ENDIF
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.