General information
Category:
Coding, syntax & commands
>>>>Thanks.
>>>>
>>>>>>Thanks, Barbara. So, in theory, one could test for the existence of a TMPFILES directory on app startup. If it doesn't exist, MD the thing. On next startup, that directory would be used. I think?
>>>>>>
>>>>>
>>>>>Yes, but you have to know what the TMPFILES directory is. I don't know of a way to find it, unless you want to parse the config.fpw file.
>>>
>>>It's too late to check for once VFP starts; you need a non-VFP component, such as a launcher, to check for and if necessary create the TMPFILES directory - VFP will attempt to use the TMPFILES directory immediately on startup.
>>
>>I understand. Couldn't the app parse config.fpw and create the TMPFILES directory so on next launch it would use the desired directory? Guess I'll just have to test it...
>
>It would, except that since the VFP engine can't create its temporary files, it dies before it gets to execute your first line of code...
Ah. I was assuming that a TEMP environmental was set in the system, so VFP had an alternative. Thanks.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only