Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TMPFILES
Message
From
06/02/2001 10:09:49
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00472851
Message ID:
00472930
Views:
39
>>>Hi,
>>> Is it possible to set TMPFILES path programmactically?
>>>
>>>Thank you
>>
>>No. It must be set in your configuration file. A good way to do this, and avoid possible problems is to generate the file in a post setup executable that's installed in the same directory as the application.
>
>An alternative is a launcher, which can construct a custom CONFIG.FPW based on what it finds prior to starting the actual app - it can identify which drive is most eligible for use for temporary storage, and then start the app pointed at a specific CONFIG.FPW using the -C command line modifier.

For a while, I was thinking of an alternative to this - since the first launch of the app would really go south only if the tmpfiles is pointing to a nonexistent or out-of-diskspace location, we may best launch it first without one. Then the app may find that it doesn't have the entry in config.fpw (or the file doesn't exist altogether), and may prepare one which would be used in subsequent launches. To do this, we may safely use PrivateProfileString functions - .fpw file actually has a structure of an .ini file, except the section titles, which I assume Fox would ignore.

[disclaimer: only parts of this were tested, some of them in older versions of Fox. don't try this at home, go to neighbor's. rated pg-12.999]

back to same old

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

Click here to load this message in the networking platform