Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement