Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple VFP instances, clashing tmp filenames
Message
De
07/01/2009 15:30:28
 
 
À
07/01/2009 12:55:00
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01371808
Message ID:
01371865
Vues:
27
Would it be possible to use a loader/launcher to load your WC instances? If so, you might be able to do something like this (pseudocode):
* Get a GUID:
lcGUID = SomeCodeToGetAGUID( )

* New temp folder is OS temp folder + the GUID:
lcTempFolder = ADDBS( GETENV( "Temp" ) ) + lcGUID

* Create the new folder:
MD ( lcTempFolder )

* Build a CONFIG.FPW file in the lcTempFolder, that includes
* TMPFILES set to the new lcTempFolder folder
TEXT TO ...
blah
blah
ENDTEXT

* Finally, use ShellExecute( ) or even RUN to start the WC instance with the -C command line option
* specifying the CONFIG.FPW file you created above

* To ease operational maintenance, you could even delete the temp folder and its contents
* from the launcher, after its WC instance has terminated
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform