Hello Agraham
Thank you for your example, it's very clear for a newbie like me.
But unfortunately, it doesn't work.
In a dos windows I type :
C:\>c:\nqc.exe -Susb -raw 120901
It answers :
54 00
This works
In your example, I use the line :
Process.Start("c:\nqc.exe" ,"-Susb -raw 120901")
Result : the command is launched (I can see the red light on the infrared lego tower), but a 0 is returned.
I suppose that your example only gets error codes and that "54 00" is not an error code. So it answers "0" that means "no error".
I then tried to redirect the result of the command in a text file :
In a dos widow, I type : C:\>c:\nqc.exe -Susb -raw 120901 > sortie.txt
Then the file "sortie.txt" contains "54 00" : it works.
In your code I then use the line : Process.Start("c:\nqc.exe" ,"-Susb -raw 120901 > sortie.txt")
I obtain the number "-13" that indicates an error I presume, because the file "sortie.txt" is neither created, nor modified if it exists...
I think I still need help...
Pascal.