In a macro file (*.do
) in ALDEC Active-HDL 9.2, I am looking for a way to retrieve some kind of return value of an external executable (run by the runexe
command).
So is there a way to retrieve the exit code, or to capture the console output (from stream STDOUT or even STDERR)?
Something like set return [runexe -wait -capture cmd /D /S /C exit 1]; echo $return
does unfortunately not get the exit code 1
, neither does set return [runexe -wait -capture cmd /D /S /C echo Result]; echo $return
fetch the STDOUT output stream.
Do I miss something, or is something like that simply not supported?
If so, could such data be read from a (text) file as an alternative solution?
And by the way, is there a way to retrieve some kind of return value of a sub-macro (another *.do
script run by the runscript
command)?
IF ERRORLEVEL
DOS / BATCH command. \$\endgroup\$*.do
macros, but not about the Windows Command Prompt. These macros run inside the Active-HDL application. \$\endgroup\$