Hmm. That's a great suggestion, unfortunately it doesn't seem to work either.
Without TB at all, if I just do this from the command line:
C:\Users\bschmalz>C:\PEMicro\cyclone_stmicro\sap_launch port=USB1 IMAGE=1
Success
C:\Users\bschmalz>
It's the "Success" that I don't want. That's the output of the sap_launch.exe program.
If I do:
C:\Users\bschmalz>C:\PEMicro\cyclone_stmicro\sap_launch port=USB1 IMAGE=1 > NULL 2>&1
C:\Users\bschmalz>
Then the result of the sap_launch program is not printed to the console. That worked, right?
Not so fast. When I do this from within TB:
OutputText("Cycle " + Using$("####",x) + " reprogramming = ")
' Send command to Cyclone to reprogram motherboard
lProgResult = OS_Shell("C:\PEMicro\cyclone_stmicro\sap_launch port=USB1 IMAGE=1 > NULL 2>&1", %OS_WNDSTYLE_HIDE, %OS_SHELL_SYNC)
OutputText(lProgResult + ", ")
Delay(250)
OutputText("power on, ")
I get the following output:
Cycle 1 reprogramming = Success
0, power on,
so there is something special about running within TB as compared to just running in a normal cmd window. I have tried different values for the 'WindowStyle' parameter in OS_Shell() as well, with no change in effect.
This is on a Win 7 Pro machine.
This is *not* a big deal to me at all. It's purely a cosmetic thing in the output of my program. Everything is actually working just fine, it's just not as pretty as it could be.
*Brian
Bookmarks