Alternative to ADIR() functions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am using the ADIR function to read the names of all picture files in a
particular folder into an array. I then append the names in the array into
a table. One of the users has more than 15000 files in their folder and get
an error message when the program reaches the line of code containing the
ADIR function. Does any one know an alternative way of getting file names
into a table ?

I have tried using RUN DIR >> X.TXT, but any file names greater than 8
characters are truncated. This doesn't happen when I actually use the DIR
command in a DOS window.

Commands like DIRECTORY and DISPLAY FILES, don't seem to create a file in a
format that can be imported into a dbf. Although I might have to work with
those if there is no other go.

Any ideas ?

TIA
Sujata


.



Relevant Pages

  • Re: Alternative to ADIR() functions
    ... >> particular folder into an array. ... I then append the names in the array ... >> ADIR function. ... >> command in a DOS window. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Alternative to ADIR() functions
    ... >> * lcFilename is current file, ... >>> particular folder into an array. ... >>> command in a DOS window. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: How to get the files names from the folder using PHP ..
    ... How to get the files names from the folder using PHP .. ... specific command. ... if {return array();} ...
    (alt.php)
  • Re: Recursivly deleting a list of files
    ... But I still need to figure out the array. ... ts.writeline oFile & " " ... 'Print subfolders of the current folder ... >> dim fldrsFolderlist, fldr ...
    (microsoft.public.scripting.vbscript)
  • Classes and Arrays
    ... have created a class called "record" to store information about a folder and ... The Perms property is a dynamic array as per ... Each element in the Perms array should be another class called PermRec. ... Private Sub Class_Initialize ...
    (microsoft.public.scripting.vbscript)