Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Environment variables update
Message
De
19/02/2010 13:39:52
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Environment variables update
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01449950
Message ID:
01449950
Vues:
118
A VFP_based application is used on LAN.
InstallShield setup creates on workstation's desktop shortcut and program menu shortcut to the main application that is on server.
During WorkStation installation the path to program("target") and to "Start in" folder are not known.
InstallShield creates 2 enviroment variables my_prog and my_startdir. I can read their value by using VFP function GETENV().
I would like to use them for substitution in shortcut fields Target and Start_In by placing %my_prog% and %my_startdir% in corresponding fields. Since sometimes LAN configuration changes, a procedure to locate server program and start_in directory is used.
To update enviroment vars should be used something like a function SetEnviromentVariable in kernel32.
How can I call this or another applicable function from Windows tools?
Maybe, there is a way to do it directly in VFP?
TIA

Ed
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform