in reply to Re: Need a 16 bit returncode from .exe
in thread Need a 16 bit returncode from .exe

The problem with this solution is that the OP is using backticks. If he wants both the executables output and the unadulterated return code...


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^2: Need a 16 bit returncode from .exe

Replies are listed 'Best First'.
Re^3: Need a 16 bit returncode from .exe
by cdarke (Prior) on Mar 18, 2008 at 19:04 UTC
    Yes, you are right BrowserUk. It should be easy to change the std file handles in the STARTUPINFO block to CreateProcess, but Win32::Process::Create does not expose that.
      I do need the output from the .exe (as well as the retcode)...

      So... you're saying this solution won't work for me?
Re^3: Need a 16 bit returncode from .exe
by jimcadd (Novice) on Mar 18, 2008 at 20:14 UTC
    BrowserUk, you kind-o tailed off on your post...
    Are you saying this solution won't work?
    I do need the output and the rc.
    Thanks.