Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API_APPRUN w/Parameters
Message
De
04/08/2005 15:36:18
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01038381
Message ID:
01038691
Vues:
20
Maybe I have an older version of the class.

The following fails:
1. When I don't include the full path.
2. If I put any parameter in the command line.

I have another related question.
Using the GetEnv( Temp ) we are getting the temp folder but it is
geeked out w/"~" in the path.

The API_APPRUN class will not run correctly using that path.
How do I get to the full path?

I appreciate any help you can give me.

>>I can't remember how to pass a parameter using his Ed Rauh's class.
>>It seems like everytime I pass anything but the name of the exe it fails.
>
>Hi Dan,
>
>You path parameters as a part of the command line parameter.
SET CLASSLIB TO PROCESS.VCX ADDITIVE
>lcParams = "H:\temp\test.txt"
>lcCommandline = "NOTEPAD.EXE " + lcParams
>oProcess = CREATEOBJECT('API_AppRun', lcCommandline, "", "NOR")
>oProcess.LaunchAppAndWait()
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform