>Hello !!
>
>I would like to get a list of file in a directory...
>Normally, I use the ADIR() command but in this case, there is a large amount of files (about 20000).
>So the ADIR() command fails because of the VFP system capabilities (65000 records in an array...)
>
>Which replacement to ADIR() can I use ?
>Is there a solution with API's or WSH ??
>
>(just to get the file list, then I'll put each name in a record of a dbf file..It will be easier to manage...)
>
>Thanks a lot !
You can use the FileSystemObject but it may be kind of slow if you only need the names of the files. Try using SYS(2000,'FileSpec')/SYS(2000,'FileSpec',1) in a DO WHILE loop.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao