Hi,
I have done a little program that I can run from command line and that returns a certain value.
I was wondering :
Is there a way to store the program exit code of a Command Line Execution into a Variable in FinalBuilder ?
Thank you very much,
Elmo84
Hi Luc,
Both the ‘Execute Program’ and the ‘Run DOS Command’ actions have a property named ‘ReturnCode’ that can be use to set a variable in the action’s ‘AfterAction’ script event.
The script will simply be (in Javascript):
Your_Variable = Action.ReturnCode;
Regards,
Paul.
Hi Paul,
Thank you :)
I just tried it and it worked perfectly.
Regards,
Luc