How to get filenames inside a folder.

Hi,

In VFP, how are you going to get the filenames inside a certain folder and insert it to a cursor/table



Answer this question

How to get filenames inside a folder.

  • JuniorBR

    Look at the ADIR() function in the help file. It fills an array with filenames in a directory.

    If you use a version before VFP 9.0 you may hit array limits in big directories (10,000 files or so).

     

    You can also use WSH if you wish. Look at the FSOTree function by the late Ed Rauh [MVP] in:

    http://fox.wikis.com/wc.dll Wiki~WindowsScriptingHost


     


  • How to get filenames inside a folder.