Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TMPFILES
Message
De
06/02/2001 10:09:49
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
06/02/2001 08:19:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00472851
Message ID:
00472930
Vues:
42
>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform