Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple VFP instances, clashing tmp filenames
Message
From
07/01/2009 15:30:28
 
 
To
07/01/2009 12:55:00
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01371808
Message ID:
01371865
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform