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"


--
Lee

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to