I have tried for some time to create a routine to retreive the contents of a directory, and put it into a table.
For example: all the *.jpg files in the c:\parts directory to be placed in the field of a table.
path = "C:/parts/"
ofs = create('scripting.filesystemobject')
nfiles = ADIR(arr,path+"*.*"
FOR ii = 1 TO nfiles
x = ofs.getfile(path+arr[ii,1]).name
if upper(justext(x)) = 'JPG'
append blank
replace field with x
endif
NEXT
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.