Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get file list (large amount) without ADIR()
Message
 
 
À
13/07/2001 17:01:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00530511
Message ID:
00530515
Vues:
26
This message has been marked as a message which has helped to the initial question of the thread.
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform