Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP60- Search a file
Message
From
18/06/1999 00:52:31
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00231195
Message ID:
00231230
Views:
16
Hi Evan ---

Allow me to flesh this out a bit. You could do the following:

RUN DIR c:\goober.htm /S /B >results.txt
cFilePath = FILETOSTR("goober.txt")

The problem is if there are multiple instances of the file, otherwise it works.

>>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.
>
>Here is way off the topic of my head.
>
>* RUN the DIR command for goober.htm, search all subdirs, only return
>* the file name with path, put result in "result.txt"
>RUN DIR c:\goober.htm /S /B > results.txt
>
>* you would then open up results.txt and look for the file name
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform