>
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