Hi guys,
I’m trying to extract the sent bytes from a shell on Windows OS, the command I use is “netstat -e | findstr Bytes”. Running this command, I get in return this result:
For some reason if I use like you suggested “var myNum as integer = parts.Pop.ToInteger” Xojo returns a -random_number…
What works is: “Var myNum As String = parts.Pop” … strange
That’s the stronger reason I tend to avoid shell calls when there are declares available for the same command. You’re never sure the format is always the same (especially when the command takes the available window’s width in the Terminal/command prompt) and the number of space may vary. What if @Gabriel_L wanted to get the first of the two numbers? Or if the command returned several number (even if you know how many beforehand) and they all have different count of spaces between them?