Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WSH manipulation of INI files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00833932
Message ID:
00833947
Vues:
21
>Hi all,
>
>An associate has just posed a question about the WSH that I'm confident *someone* here knows.
>
>Can the WSH manipulate values in existing INI files, and if so, what would be a *basic* syntax to do so? (reason: they have an INI file controlling an app that contains an output location, and they want to repeatedly change that location programmatically before firing an instance of the app).
>
>TIA,

Evan,

The WSH has no intrinsic functionality for ini files. You'd have to use the Scripting.FileSystemObject's TextStream Object and parse the file to read or write a specific value.

If using VFP, I'd stick with the API calls for this sort of thing.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform