>>>>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