Stephen,
You cannot set TMPFILES from within VFP application. Location of VFP application temporary directory is determined as follow:
1. TMPFILES=< temp directory > directive in CONFIG.FPW configuration file. It can be overritten by PROGWORK, SORTWORK and EDITWORK directives
2. If location of temp files isn't specified in the config.fpw, the value of TEMP environment variable is used, if directory it specifies exists.
3. If it is not present either, than temporary files are created in startup directory
>I have a VFP7 application that resides on a network server. Users have a desktop icon that points to the executable and runtimes.
>
>The application is also accessible through a Citrix metaframe client which means that someone can run the application without access to a local drive.
>
>There are numerous instances in the application where the user creates temporary tables. Even though there is a small performance penalty, I want to ensure that an individual's temporary cursors never occur in the same folder as another users. All users (both networked and Citrix) users have access to a private network share of "H:\TMP". I would like to set this as the default temporary file path for my application. I have the TMPFILES="H:\TMP" statement in the config.fpw file on the server, but I'm not sure that it's really working for all workstations.
>
>Is there a way to specify the TMPFILES path in code? I've searched the VFP docs and tried a bunch of things (all with various syntax errors).
--sb--