Maybe I'm missing something, but you say that you have an app that's returning a four-byte value, and yet $?>>8 is only letting you read the first four bytes. Wouldn't the first four bytes in a four-byte value constitute the entire value?
thor
Comment on Re: Getting the errorlevel from a system call