>We have an app that will be distributed in a stand-alone version on CD-ROM. The problem is that temp files are written by default to the startup directory. On CD-ROM, that would be the startup directory on the CD which is read-only of course. Instant crash.
>
>While we could just put "TMPFILES C:\" in CONFIG.FPW, this isn't a great solution. Some folks may have partitioned drives with C being a small partition with the operating system on it and D being the data partition.
>
>Is there any way to intelligently set TMPFILES? It would nice to be able to get the space available from all local drives and set TMPFILES to the drive with the most space.
>
>TIA
Gary,
There are some vague refrences in the *Visual FoxPor Installation Guide and Master index*, on how to do this using the Windows Registry, and API calls. Using Regedit, I can see (on my machine) a TMPFILES key. Under HKEY_CURRENT_USER: Software\Microsoft\VisualFoxPro\5.0 (or 3.0) \Options. No reference is made whether this affects the Runtime or Development environment. Seems like this is a lot of work, and risk, to avoid using a config file.
Good luck,
Glenn