>>>Hi,
>>> Is it possible to set TMPFILES path programmactically?
>>>
>>>Thank you
>>
>>No. It must be set in your configuration file. A good way to do this, and avoid possible problems is to generate the file in a post setup executable that's installed in the same directory as the application.
>
>An alternative is a launcher, which can construct a custom CONFIG.FPW based on what it finds prior to starting the actual app - it can identify which drive is most eligible for use for temporary storage, and then start the app pointed at a specific CONFIG.FPW using the -C command line modifier.
For a while, I was thinking of an alternative to this - since the first launch of the app would really go south only if the tmpfiles is pointing to a nonexistent or out-of-diskspace location, we may best launch it first without one. Then the app may find that it doesn't have the entry in config.fpw (or the file doesn't exist altogether), and may prepare one which would be used in subsequent launches. To do this, we may safely use PrivateProfileString functions - .fpw file actually has a structure of an .ini file, except the section titles, which I assume Fox would ignore.
[disclaimer: only parts of this were tested, some of them in older versions of Fox. don't try this at home, go to neighbor's. rated pg-12.999]