>I am trying to get an array from a specific directory on my harddrive.
>I am doing what I "believe" is correct but the value always returns a "0" and it should return the file count.
>the line is...
>ADIR(temparr,'C:\programfiles\*.*')
>
>I know I'm missing something real simple here!
>
The following works fine on my NT box:
DECLARE aFiles[1,5]
? ADIR(aFiles,'C:\WinNT\*.*')
Are you sure of the directory name? For example, my system has a
C:\Program files directory on it - the space in the name is significant. If I say:
? ADIR(aFiles,'C:\Program files\*.*')
it finds things
? ADIR(aFiles,'C:\Programfiles\*.*')
doesn't, because the directory name doesn't exist.
>thanks,