Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to do a file search in VFP
Message
 
To
11/05/2001 13:11:58
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00506277
Message ID:
00506287
Views:
15
>Does anyone have experience with programmatically performing a file search in VFP based on a top-level directory? This would be similair to what explorer gives you the capability of doing in the find files or computers tool.
>
>The file system object doesn't seem to be up to the task. I could use ADIR but then I have to iterate through all of the sub-direcories under the specified search directory which seems like a lot of work. Perhaps this is my only choice.
>
>Any suggestions?
>
>Thanks for your help!
>
>-JT

Jeff,

The only way to is recurse the directory and its children. In some ways the FSO is easier than ADIR() since it separates the directories and files into different collections. Using ADIR(), however, is faster. Cetin Basoz, I think had a routine that used ADIR() that he's posted here several times, including recently. You might want to check his recent posts.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform