Page 1 of 1
errorlevel property for Execute program device
Posted: Sun Jun 29, 2003 11:48 pm
by Automate
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.
Posted: Mon Jun 30, 2003 10:08 am
by ScottBot
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
Posted: Mon Jun 30, 2003 11:25 am
by Automate
Thanks!
Posted: Mon Aug 18, 2003 9:31 am
by ScottBot
Jim,
If you're still interested, HouseBot 1.30 has just been released with the ability for an Execute Program Device to wait for an application to complete and get its exit code. You will need to re-create the Execute Program Device to get the new functionality.
Scott