Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to customise SYSTEM.INI
Message
From
24/07/1999 10:58:23
 
 
To
24/07/1999 09:31:42
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00245706
Message ID:
00245719
Views:
12
>Hi,
> How could I customise or modify the setting in system.ini using program?
>

If you're using VFP6, the FFC has a class that can manipulate .INI files; it's called OLDINIREG, a part of REGISTRY.VCX. I don't have source code to give you, and you'll have to read the class code to figure out what the parameters are that are needed to make additions or changes - there are a relatively few (4 to be exact) public methods involved, so it shouldn't be a great difficulty to figure it out - the full source is contained in the class library.

With older versions of VFP, you might want to look in the Files Section of UT for a class to do this. The manipulations are best done using a small set of API calls; the code to access those API calls is shown in OLDINIREG, so you could adapt it from there if necessary.

Obviously, you have to fully understand the consequences of any changes that you make; it's quite easy to create a non-functional system with careless manipulation of critical INI files or the registry.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform