Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShellExecute mutliple parameters
Message
De
09/01/2003 17:02:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00739995
Message ID:
00740066
Vues:
19
>>>>Hi - I'm launching one vfp exe from another using shellexecute - how can I pass multiple parameters to the second exe when I do this?
>>>>
>>>>TIA,
>>>
>>>Use the lparameters string and don't use commas, but rather spaces to separate them.
>>
>>Ok - I'm getting a result of 2 (Bad Association) Exact call is
>>
>>
DECLARE INTEGER ShellExecute ;
>>		IN SHELL32.DLL ;
>>		INTEGER,;
>>		STRING,;
>>		STRING,;
>>		STRING,;
>>		STRING,;
>>		INTEGER
>>
>>? ShellExecute(0,'Open','myapp.exe',"'a' 'b' 'c' 'd' 'e' 'f'","",1)
>>
>>Ideas?
>
>Well, first, ShellExecute is primary used to launch files with an associated application. It can, however, be used to start an new instance of an application.
>
>The problem looks to be the way the parameter list is identified. When passing parameters, they're always passed as strings so if you replace
>
>"'a' 'b' 'c' 'd' 'e' 'f'"
>
>with
>
>"a b c d e f"
>
>That may do it.

No - the first way worked - I was just being dense .. thanks for your help ...
KBM
Ken B. Matson
GCom2 Solutions
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform