Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP60- Search a file
Message
De
18/06/1999 00:52:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00231195
Message ID:
00231230
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform