09-29-2009 06:50 PM
I need to call an external exe from my c-code and I would like to capture the exit code when it's done. I've looked at both the LanuchExecutableEx() and system() functions and neither one does this. With LaunchExecutableEx() I can check to see if it's done or abort it if necessary, but I don't see a way to get the exit code when it is done. Is it possible to do this with LabWindows?
09-29-2009
07:18 PM
- last edited on
03-18-2025
05:01 PM
by
Content Cleaner
DanQ:
Another way to launch an executable is by using CreateProcess(). You can then use GetExitCodeProcess() to read the results.
See more details here: http://digital.ni.com/public.nsf/allkb/E250246D65A6A18D8625659F0065F310