Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching for a file
Message
De
06/02/2003 11:44:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Searching for a file
Divers
Thread ID:
00749940
Message ID:
00749940
Vues:
65
I've been asked to add a routine in an existing application that searches for a file on the user's machine, then edit that file if it is found. It happens to be an ini file.

I know that locfile() finds a file, but only searches in the paths set in set path. How can I search for a file if I don't know what subdirectory it is located in on the user's machine? Also, what if there might be multiple occurances of the file on the machine? How can I find all of them?

Once located, how do I edit the file within my program. It's a very specific edit on one line of the file. If I use at() or atc() how do I specify the string that I'm searching in?

Thanks.

Judy Scofield
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform