Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a vfp exe from within another.
Message
 
À
13/10/2003 16:02:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00838295
Message ID:
00838771
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform