Page 1 of 1

CMD Node doesn't support negative exit codes

Posted: Tue Oct 18, 2016 5:05 pm
by kibi
Hi!
18-10-2016 19-48-23.png
18-10-2016 19-48-23.png (6.97 KiB) Viewed 5781 times
I have a batch file with exit code "-3", but FFASTRANS shows it as "4294967293".

Re: CMD Node doesn't support negative exit codes

Posted: Wed Oct 19, 2016 6:10 pm
by admin
Why being so negative, Alexander? ;-)

FFAStrans ask the windows api what the exit code for the executed command was, so it's basically the api getting it "wrong". But I think the exit code in windows are represented as unsigned 32bit so that might be the reason of this behavour. Sticking to positive exit codes is probably the proper solution.

-steinar