Andrew,
Try specifying the fullpath to your exe:
WITH ThisForm.oProcess
.icCommandline = <b>'C:\TsrTu3a\tsr-tu3A.exe'</b>
.icLaunchDir = "C:\TsrTu3a"
.icWindowMode = "NOR"
.LaunchApp()
ENDWITH
HTH
>>>From a button on a form I RUN another Windows program which downloads a text file from a barcode reader(via serial port).
>>>
>>>I don't want my code to continue running until the barcode program finishes.
>>>
>>>How can I recognise this completion?
>>>
>>>TIA
>>>Andrew McGurk
>>
>>See file #
9477 in the download section.
>>
>>Dan
>
>Thank you for your quick and appropriate response. It looks straight forward, but in my ignorance, it doesn't work for me!
>
>I am setting the following properties
>
> ThisForm.oProcess.icCommandline = 'tsr-tu3A.exe'
> ThisForm.oProcess.icLaunchDir = "C:\TsrTu3a"
> ThisForm.oProcess.icWindowMode = "NOR"
>
>and getting a NULL response = "Can't do it". I have stepped it through to the CrPr statement, then...
>
>Is there more I should know?
>
>Andrew McG
Daniel