Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH manipulation of INI files
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00833932
Message ID:
00833947
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform