INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MC21.exe return codes  (Read 1498 times)

DoubtingThomas

  • Citizen of the Universe
  • *****
  • Posts: 564
MC21.exe return codes
« on: February 04, 2016, 06:11:26 pm »

I use MC21.exe extensively, and I like to check the return codes.  As shown in the examples, I get either a 0 or 1 and I would expect a 0 on success.  All MC21.exe calls in the examples, produce the expected results.

Do the return codes from MC21.exe have meaning?  Is there a problem in the MC21.exe code that is not returning the correct return code?

Code: [Select]
c:\>mc21 /command pause
c:\>echo %ERRORLEVEL%
0

c:\>mc21 /mcc 10022,1
c:\>echo %ERRORLEVEL%
1
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10923
Re: MC21.exe return codes
« Reply #1 on: February 05, 2016, 12:58:43 am »

The return codes don't really have a meaning, sorry. What it returns depends on some internal processing and which code is used, but it's not a generic fail or success.
Logged
~ nevcairiel
~ Author of LAV Filters

DoubtingThomas

  • Citizen of the Universe
  • *****
  • Posts: 564
Re: MC21.exe return codes
« Reply #2 on: February 05, 2016, 09:03:43 am »

The return codes don't really have a meaning, sorry. What it returns depends on some internal processing and which code is used, but it's not a generic fail or success.

Thank you for the reply.  I'll remove the return code check from my calling code.
Logged
Pages: [1]   Go Up