Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP60- Search a file
Message
From
18/06/1999 09:57:20
 
 
To
17/06/1999 22:07:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00231195
Message ID:
00231351
Views:
14
>Is there a way to do a search in my x:\ drive for x file? I would like to do some global search if possible. Any comments or suggestions will be welcome.
>
>Thank you in advance.

Take a look at the ADIR() function. That will look in the current directory only, but using ADIR(var, "", "D") will return the list of directories, so a little recursivity should be all that's needed. One word of warning: directories "." and ".." will be returned, so you could be looking at an infinite loop if you're not careful (and we know only Cray computers can complete an infinite loop in under 2 seconds...) :)
Sylvain Demers
Previous
Reply
Map
View

Click here to load this message in the networking platform