Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Querying files in a folder
Message
From
21/06/2005 08:43:05
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01025060
Message ID:
01025116
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform