Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API_APPRUN w/Parameters
Message
De
04/08/2005 16:31:00
 
 
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:
01038715
Vues:
14
GetLongPathName works great. Thanks.

The following code errors:
SET CLASSLIB TO PROCESS.VCX ADDITIVE
lcParams = "c:\temp\test.txt"
lcCommandline = "NOTEPAD.EXE " + lcParams
oProcess = CREATEOBJECT('API_AppRun', lcCommandline, "", "NOR")
oProcess.LaunchAppAndWait()
The error w/in the class is:
Process Specified by icCommandLine could not be started

If I put the full path and remove the parameters it works fine.

Once I add the parameters, I get the same error as above.

I haven't looked into the GetLastError API call.
Maybe I should check that.

>>Maybe I have an older version of the class.
>>
>>The following fails:
>>1. When I don't include the full path.

>
>Yes, you've to provide full path if program isn't located along Windows search path
>
>>2. If I put any parameter in the command line.
>
>What error do you get? Can you post your code and the command line with parameters you're trying to execute?
>If path or parameters have spaces, they should be encloused in double quotes.
>
>
>>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?

>
>See Re: DOS paths vs. Windows paths Message #810026
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform