clink icon indicating copy to clipboard operation
clink copied to clipboard

Get exitcode of last ran command

Open r3Fuze opened this issue 7 years ago • 1 comments

Is it possible to get the exitcode of the last ran command, similar to echo %errorlevel%? I have tried clink.get_env("errorlevel") and a few things to run echo %errorlevel% and get the output but everything just returns 0.

r3Fuze avatar Feb 17 '17 16:02 r3Fuze

See the issue #385. It should be clink.get_env("=ExitCode") but check my comments, it works only sometimes. It looks like there are more ways to return an exit code from an application and this is working in some cases only.

ferenczy avatar Aug 23 '19 10:08 ferenczy