Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the temp directory
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 5
OS:
Windows NT
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01059196
Message ID:
01059409
Views:
9
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
Map
View

Click here to load this message in the networking platform