Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: tushar
  Where is tushar?
 Panaji
 India
 tushar
 To: Jack Ryan
  Where is Jack Ryan?
 Auckland
 New Zealand
 Jack Ryan
 Tags
Subject: RE: Clashing tmp filenames with 12 instances
Thread ID: 210781 Message ID: 210842 # Views: 24 # Ratings: 0
Version: Visual FoxPro 9 Category: Web Applications
Date: Thursday, January 08, 2009 8:00:35 AM         
   


> You can have multiple configuration files for multiple instances. When starting the exe, give command
> YourEXE -c ConfigurationFileName

>
> That's true if you can control each instance's startup. If you can tell me how to do this for a COM scenario where the instances are spawned automatically, I'm all ears!

OK. A COM DLL does not use a configuration file. Or at least sys(2019) returns blank. However the COM DLL uses the TMP environment variable to decide its temporary file path. Check help on "Optimizing the Operating Environment".

Check http://stackoverflow.com/questions/331862/how-do-i-set-a-system-environment-variable-in-windows-xp-without-using-the-my-c for changing environment variable through VBScript. What are you using to create the VFP object? However the environment variable seems to remain in effect until the program exits. So I think you will have to create each object in a different process.

Regards
Tushar



COMPLETE THREAD
Clashing tmp filenames with 12 instances Posted by Jack Ryan @ 1/7/2009 7:06:57 PM
RE: Clashing tmp filenames with 12 instances Posted by Brad Schulz @ 1/7/2009 7:14:43 PM
RE: Clashing tmp filenames with 12 instances Posted by Jack Ryan @ 1/7/2009 11:01:16 PM
RE: Clashing tmp filenames with 12 instances Posted by tushar @ 1/7/2009 7:17:45 PM
RE: Clashing tmp filenames with 12 instances Posted by Jack Ryan @ 1/7/2009 11:05:52 PM
RE: Clashing tmp filenames with 12 instances Posted by tushar @ 1/8/2009 8:00:35 AM
RE: Clashing tmp filenames with 12 instances Posted by Jack Ryan @ 1/8/2009 7:12:43 PM
RE: Clashing tmp filenames with 12 instances Posted by Brad Schulz @ 1/8/2009 7:37:13 PM
RE: Clashing tmp filenames with 12 instances Posted by Jack Ryan @ 1/8/2009 9:00:22 PM
RE: Clashing tmp filenames with 12 instances Posted by tushar @ 1/8/2009 8:32:12 PM
RE: Clashing tmp filenames with 12 instances Posted by Anders Altberg @ 1/8/2009 6:38:21 PM
RE: Clashing tmp filenames with 12 instances Posted by Brad Schulz @ 1/8/2009 6:53:57 PM