errorlevel property for Execute program device
errorlevel property for Execute program device
It would be nice if the executed program could return an exit status back to a HB property. I realize it would not be much use for most windows programs but many small command line type programs set the errorlevel based upon the success/failure of the program execution. If this DOS errorlevel was available, HB could make decisions based upon program success rather than just assume that everything went well. It could also be used as a way to pass a number between the executed program and HB.
The Execute Program Device does not currently wait for the process to complete to get the exit code. I'll add an option/Property to wait for the program to complete before returning and an exit code Property. I should be able to include this in the next update, but the next update won't be until August sometime.
Scott
Scott