Hi,
I'm trying to write a program in Visual FoxPro. I need to put the names and locations of the files located into a directory/folder into a table.
Can anyone help me?
The ADIR() function will give you the names and a lot more besides. If you just want the names of files from folder lcDir in a field named filename then:
[TT]
n=Adir(laNames,lcDir)
Append From Array laNames Fields filename
[/TT]
Look up Adir in Help. There are lots of options and flags to control what it gives you.
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.