I used launch() to invoke a batch script. The batch script would than launch Arduino-cli to build and upload an arduino program to a board.
That was this fine working line. launch("rundll32 SHELL32.DLL,ShellExec_RunDLL " + sketchPath("") +"\\flashArduino.bat") ;
In order to get the correct COM port as well as board model. I would like to fetch the output generated by arduino-cli. This allow me to use the board list command to figure out which COM port I should use. The native processing's Serial.list() is not satisfactory:
No the code was just the relevant snippet. I use several files and my main is often big so posting complete programs in something other than a zip file is not really doable