RunCommand FPC misses output if process produces error/warning message
The FPC RunCommand[InDir] both fail to produce output in the output variable whenever the called command, cUrl.exe in this case, replies an error with error/warning message. It should return the error code in the error code but nevertheless also produce the error message to the output string. See example output .pdf.
Otherwise it is impossible to handle erroneous conditions in FPC. Or I should pipe the output in a windows file with the very undesired Exec or Executeprocess statement. So, I need a working RunCommand function…..
Or is there something that I do wrong with RunCommand?
I use FPC 3.0.2 with W10 on Dell E6410.
Example with correct TCP/IP connection and correct error message, but missing result in output string: see .pdf
Other "false" example, only running locally: see .pdf
With the correct cmd, all of the 4 variations do what they are expected to do: store output in outputstring! see .pdf