06-16-2019 07:12 AM
HI
I am calling bath file from CVI (win os):
int p_f= system ("C:\\Program Files\\BurnInTest\\_1.bat ");
when _1.bat call to another program, this program return 1 or 0.
After 'system' command, p_f always zero (its mean system command had no errors), but i want return value.
I try 'EXIT 5' (return 5) directly from _1.bat and still read 0
06-17-2019 03:27 AM - edited 06-17-2019 03:33 AM
This old thread may give you some idea:
using "cmd /c net name" with LabWindows cvi and get the answer to the cvi variables
A little note on the situation with modern releases of the OS: if you install your app in Program Files folder you may not able to create a file in the application folder and write to it, so it may be better to put the output file in another folder where you have write access.
01-23-2020 02:28 AM
My solution, in the END:
For pass writhe 1 to text file and 0 for fail.
The i read this text file from my programm