Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running a vfp exe from within another.
Message
 
To
13/10/2003 16:02:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00838295
Message ID:
00838771
Views:
18
Hi Larry,

>I am trying to run a VFP exe from my VFP 6.0 exe and having a problem with the app that I am running's config file. How can I specify to look for a different config file when I am running the exe from within my exe.

The only way to use a different config file is to run the second VFP instance in a new process. This means you launch it with RUN, ShellExecute or CreateProcess and pass the new config file using the -C paramter:

RUN Second.EXE -CSecondConfig.FPW

However, as the EXE entirely runs in a new process it takes a while to load and it doesn't have access to any of the variables, tables or objects of your first application.

--
Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform