Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Querying files in a folder
Message
De
21/06/2005 08:43:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01025060
Message ID:
01025116
Vues:
15
Hi Neil,
You can chk XDIR tool here on downloads.
It is class object for directory scan including subflders.
There is example there of filling up cursor with all directories and tables.
Source is there so you can filter out only xls file.
Rgds++

>Fantastic Thanks John,
>
>I have done this but it onyl does this for the current folder. How do I change this code so that it includes all subfolders within U:\QuestPDM\Vault
>
>
>CLOSE DATABASES
>SET DEFAULT TO U:\QuestPDM\Vault
>
>gnDbcnumber = ADIR(gaDatabase, '*.XLS')  && Create array
>
>CLEAR
>FOR nCount = 1 TO gnDbcnumber  && Loop for number of databases
>   ? gaDatabase(nCount,1)  && Display database names
>ENDFOR
>
>
>Thanks
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform