Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to customise SYSTEM.INI
Message
De
24/07/1999 10:58:23
 
 
À
24/07/1999 09:31:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00245706
Message ID:
00245719
Vues:
19
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform