[Gambas-user] Shell command formating

Shane buster6seven at ...626...
Tue Aug 8 03:54:14 CEST 2017


That worked great T Lee thanks



On 08/08/17 00:00, T Lee Davidson wrote:
> On 08/06/2017 09:52 PM, Shane wrote:
>> So again on the shell command I have this code
>>
>> Dim result As String
>> Dim command As String
>>
>> path = File.SetExt(file_name, "ihx")
>>
>>   command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path
>>
>> Shell command To result
>>
>> FMain.TextArea1.Text = result
>>
>> but the output is going to stdout and not the result String i know it 
>> to do with the command string
>>
>> but now do you set it up ?
>>
>> Thanks Shane..
>>
>
> Perhaps the output is actually going to stderr for some silly reason. 
> Maybe try redirecting stderr to stdout:
>
> command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path & " 
> 2>&1"
>
>





More information about the User mailing list