Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Count more than 65,000 files in directory
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00441608
Message ID:
00441958
Vues:
14
>>I'm working on a data transfer project where ARC files are expanded into new directories and ADIR() is used to return the file names and file count.
>>
>>When there are more than 65,000 files expanded, VFP 6.0 errors with Too many variables. (array limit reached).
>>
>>How can I test for the number of files prior to calling ADIR()???
>>
>>I considered running DIR * TO FILE (filename) but I figure, the overhead of
>>writing a 65,000 line file to disk multiple times, is more than the system will bear.
>>
>>Any and all suggestions will be appreciated.
>>
>>_Curtis
>
>In addition to what Cetin and Ed said, you can loop through the directory using SYS(2000). If you are only dealing with files (and not directories), it will most likely work for you.

Larry,

Check this thread: Coding, syntax & commands Re: How to work with files in system/hidden folders Thread #314887

I'm still planning to create a Document here in Documents section based on this thread, but I'm not 100% sure, I'm capable to do this...
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform