> On Wed, 02 Jul 2003 , Kurt Griffin wrote:
> Lingo alone can't search a hard drive. You could use another xtra, like
> fileXtra3 (free, but a whole lot of effort to use for this) or masterApp.
> But, I think the Buddy way is the best way - baOpenFile("path") is short and
> sweet - it does all of the "app finding" for you.
well, you can search a hard drive with lingo alone, although it's definitely not
be the fastest
way to do it. for example try:
search("AcroRd32.exe", "C:\Program Files")
with the following recursive handler (quick and dirty, windows only):
----------
on search what, where
i=0
repeat while true
i=i+1
fn = getNthFileNameInFolder(where, i)
if fn = "" then exit repeat
if fn contains what then put where&"\"&fn -- do something usefull with
search result here
search(what,where&"\"&fn) -- maybe fn is a subfolder?
end repeat
end
----------
valentin
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL
PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping
with programming Lingo. Thanks!]