Link to home
Start Free TrialLog in
Avatar of thready
thready

asked on

C++ execute command line - errorcode

Hi Experts,

How can I run an exe from code and get the value of errorcode (as we would in a batch file)?

Thanks!
Mike
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry about the code formatting, but you'basically call this function with the command line to execute and the the return value (or %ERRORCODE%) back in return.
Avatar of thready
thready

ASKER

Awesome!  :-)
Thanks!