After you call this routine at startup, how do you make the application referenec the *.tmp files in (globalTempPath) directory instead of the one s in the default temp folder?
Thanks again.
>Below is a procedure that we use to find everyone's temp folder.
>
>PROCEDURE FindGlobalTempPath
> * Find our home directory. It won't always be on the C: drive. This code is
> * lifted from the July 2001 FoxTalk in the "Reusable Tools: Going Ape Over the
> * Win32 API" article. Returns a path for temp file storage, either on the
> * local machine, or on the Citrix server if citrix client.
> IF TYPE("globalTempPath")="U".OR.TYPE("globalTempPath")="L"
> PUBLIC globalTempPath
> globalTempPath = SPACE( 260 )
> DECLARE INTEGER GetTempPath in Win32API integer nLength, string @szBuffer
> GetTempPath( 260, @globalTempPath )
> globalTempPath = ADDBS( LEFT(globalTempPath, AT(CHR(0), globalTempPath) - 1))
> CLEAR DLLS
> ENDIF
>ENDPROC
>
>We just make sure to call the procedure in the beginning of our setup code and then any time we want to save to a temporary file we use the globalTempPath varaible for placement.
Work as if you don't need money
Love as if you've never been hurt before
Live as if this is your last day to live
Dance as if no one's watching