errorlevel property for Execute program device

Have an idea for a new feature? Voice your opinion here.
Post Reply
Automate

errorlevel property for Execute program device

Post 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.
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post 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
Automate

Post by Automate »

Thanks!
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post 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
Post Reply