Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a folder
Message
From
07/06/2002 14:11:32
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00665062
Message ID:
00666108
Views:
26
>>>>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
Map
View

Click here to load this message in the networking platform