Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Path Finding
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01107962
Message ID:
01107982
Vues:
16
I guess it only can be a recursive procedure that starts from root and scans all folders. You can build it on ADIR() function, or on Shell32 COM object, or on API calls. The scanning itself is going to be time consuming. Depending on whether the whole disk is scanned and how dense it is populated it may take from 30 seconds to 5 minutes to complete.

VFP code sample:
Building a tree of subdirectories for a given path using FindFile functions
http://www.news2news.com/vfp/?example=236&function=378

It takes about 30 seconds for this code to scan 4698 subdirectories in Program Files folder on Pentuim(R)4 CPU 1.6 GHz with 512 MB of RAM.

I wonder if hooking to Windows Indexing Service or to Google Desktop is possible to obtain file locations faster. Though you may not have them running on every computer you install your software on.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform