Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Temp folder without config.fpw
Message
From
14/07/1999 14:06:48
 
 
To
14/07/1999 12:34:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00241324
Message ID:
00241398
Views:
11
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform