Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TMPFILES
Message
From
19/08/1999 05:56:03
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00254693
Message ID:
00255174
Views:
33
>>Sorry to pick your brain again, but you said you put it in the config.fpw. So you allow the users to change this config file?
>>
>>I don't feel comfortable hard coding the temp to always be say C:\TEMP, their C: drive might be the smallest drive and not have the room available. We have our config.fpw compiled into the exe. Is this not a good idea? I thought that would make sure the application was using the right config file.
>
>The problem is that if you compile it into the executable, you can't override it, and if you set TMPFILES in the CONFIG.FPW, you need to be sure that the directory specified exists and the user has full rights in the directory, and that the drive has plenty of space for it to work with.
>
>I find that building a CONFIG.FPW on each user system, and placing that and the executable on the local system, pay big dividends, especially in conjunction with a launcher application that can keep the required local files up to date before firing off the actual application.

One thing that crosses my mind is that one can always read the config.fpw from the app, check the TMPFILES setting, and then check the space on the drive where it resides. If there are other local drives (this would need some API, I gues) with more space, we could simply dump all our files (older than, say, two days) from the old temp directory, create it on another local drive, and rewrite the config.fpw for the next launch of the application. I'm assuming there's a local config.fpw.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform