Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the temp directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows NT
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
01059196
Message ID:
01059409
Vues:
10
Hi,

>Is there anyway to programatically set the value that sys(2023) returns?
>I suspect there is. I suspect there is because you can go to Tools\options and under the Files tab you get to specify the value that sys(2023) returns.
>
>I'm hoping that means I can do it in code.

The options setting controls the location for temporary files in the dev environment. From an EXE SYS(2023) returns the value obtained by the GetTempPath() API. This checks the values in the TMP,TEMP and USERPROFILE environment variables in that order. These are loaded from the HKEY_CURRENT_USER\Environment registry keys on login.

So you can change the registry entry but it won't take effect until
the next logon. Also bear in mind that the setting may well be used by other applications run by the user which may be a problem...

What are you trying to achieve ?
Regards,
Viv
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform