Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to work with files in system/hidden folders
Message
De
10/01/2000 11:44:19
 
 
À
10/01/2000 11:19:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00314887
Message ID:
00315530
Vues:
64
>Hi Ed,
>
>I was just trying out the code after you modified it to see the results. From my experiance if you used ADIR() to populate a tree of directories and Scripting.FileSystemObject to populate the files side you should be safe even if you had 13,000+ files?? You could get the best of both so to speak...
>

VFP has a limit on the size of an array - 65000 elements, assuming nothing else steps in to reduce that further. 13000 * 5 is right at the limit - 13001 is too large. If you indeed have a directory with that many entries, ADIR() and arrays are not going to be usable.

I'd consider very carefully why you have a single directory with 13000 entries in it; perhaps something should be done to reduce the number of files in this single folder. Even under NetWare, you're going to take a noticable performance hit on wildcarded searches and file open/close operations. Reorganization of the directory might be in order; perhaps you could zip sets of files as they become outdated or less frequently referenced.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform