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:
00024353
Vues:
37
>>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
>
>This sounds like something that can be done via the Windows registry - have you looked into that?

If you start the application from progman (win 3.x) or desktop (win95) you can set a startup directory different of the EXE directory. Look at the properties of icon in windows...
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform