Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API_AppRun and command line parameters
Message
 
 
À
19/01/2006 13:42:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01088569
Message ID:
01088570
Vues:
7
>Hi all,
>
>I am attempting to launch a EXE using the Api_AppRun class. The EXE has several parameters (ie. NotePad.exe ToDo.txt). But when Api_AppRun attempts to launch the exe, it reports an error of "Process Specified by icCommandLine could not be started". If the parameter is left off, that application is luanched as expected.
>
>Is there any way use Api_AppRun to launch an application with parameters using this class?

The following works for me
SET CLASSLIB TO PROCESS.VCX ADDITIVE
lcParams = "H:\temp\test.txt"
lcCommandline = "NOTEPAD.EXE " + lcParams
oProcess = CREATEOBJECT('API_AppRun', lcCommandline, "", "NOR")
oProcess.LaunchAppAndWait()
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform