>Hi,
>
>I was wondering if there is a way to change the temp folder from within a VFP runtime exe without specifying it within a config.fpw file. I know this is possible within the development environment (via Tools->Options) and this does not require a restart of VFP (just check SYS(2023)). However I have found no programmatic equivalent to this menu option.
You have two choices; either specify the directory to use via the CONFIG.FPW or its moral equivalent, or let VFP use the Starting Directory for the executable.
Under VFP6, there's an entry under HKEY_USERS\
SID\Software\Microsoft\VisualFoxPro\6.0\Options when run in NT, it's specific to the Security ID of the logged-in user that is used by the development version of VFP, but I don't think is supported by the runtime - the vast majority of the other related registry entries are development-version specific. I'm not sure where Win9x puts the equivalent information; the entry exists under HKEY_CURRENT_USER, but Win9x doesn't resolve the HKEY_CURRENT_USER entry the same way as NT; with no user profiles enabled, it uses the HKEY_USERS\.DEFAULT subkey, and I don't have a system here with profiles enabled to check this.
This information is overridden IAC if a CONFIG.FPW is present.