Thanks Eric,
Is there an advantage to using the loShell as opposed to just the Run command.
Once I got edc.exe to convert 'T' to .T., I got this to work fine:
cmdButton.click()
RUN /N edc.EXE T
What would be the advantage of using:
cmdButton.click()
loShell = createobject("WScript.Shell")
loShell.Run("edc.exe T",1,.F.)
>An exe can only accept a string and cannot contain spaces.
>
>In the exe:
>
>lparameters tcString
>
>if tcString == "T"
>store .T. to myvar
>endif && Otherwise whatever.
>
>Then in code:
>
>loShell = createobject("WScript.Shell")
>loShell.Run("my.exe T",1,.F.) && Last param here is wait or nowait, second is windowstate
>
>
>
>find a way to pass a parameter to the exe file.
>>>>
>>>>I have tried "run /N edc.exe .T.", but it ignores the .T.
>>>>I have tried "run /N edc.exe with .T." but I get an error
>>>>
>>>>TIA
>>>
>>>See
How to pass parameters to VFP EXE FAQ #17861
>>
>>Hi Sergey,
>>
>>Your FAQ shows how to pass parameters using a Windows shortcut, but I can't get it to work from within a VFP 7.0 form.
Bill Morris