General information
Category:
Coding, syntax & commands
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only