Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you set TMPFILES anywhere other than CONFIG.FPW?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00024276
Message ID:
00024501
Vues:
38
>We have an app that will be distributed in a stand-alone version on CD-ROM. The problem is that temp files are written by default to the startup directory. On CD-ROM, that would be the startup directory on the CD which is read-only of course. Instant crash.
>
>While we could just put "TMPFILES C:\" in CONFIG.FPW, this isn't a great solution. Some folks may have partitioned drives with C being a small partition with the operating system on it and D being the data partition.
>
>Is there any way to intelligently set TMPFILES? It would nice to be able to get the space available from all local drives and set TMPFILES to the drive with the most space.
>
>TIA

Gary I dont think this will answer your question, but this is how we handled it. We created our distribution for CD using the SETUP.APP provided by FoxPro 2.6a. The application asked me if there was a program I wished to run after installation. This program is a visual basic program created by us to create a config.fpw for each application that is installed. So we build it on the fly and thus get our temporary location from the user at the time of installation. Our applications have queries that do need a lot of temp files so this was a requirment of all our installations. Hope this helps, but I am sure that config.fpw is the only place you can setup this TMPFILE area.

Bret
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform