Click here to Skip to main content
14,836,169 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
This issue occurred to me when I tried to run an application through bat file.
It goes like this.

C:\Programs\Dialogue.exe -controlfile "C\Option.opt"

On doing so I got the error as "the command failed with an Exit code 12". Later when I searched in Google, I found that the exit code 12 refers to "The access code is invalid"

When I restarted the system, it worked fine but after some three or four attempts, the issue reoccurred. When I again restarted the system, the issue was not resolved this time.

Also when I gave the same command through RUN window it worked fine for some attempts.

Even though I have given the Quotes ("") for the arguments, I am getting this error. Can anyone help me in resolving this issue? Also please explain me why this issue occurs.

It happens not only to me but for several other users. We are clueless as the occurrence of the issue was not consistent and also can anyone explain what actually is "The access code is invalid" means related to this issue.
TRK3 15-Jun-11 18:04pm
Is Dialogue.exe your program or something you got from somewhere else?

Is the program actually running? Or is it failing to run?

If the program doesn't explicitly return a value on exit, it might run just fine, but return a garbage return code to the OS.
Sergey Alexandrovich Kryukov 15-Jun-11 18:34pm
Correct, it all depends on what's Dialogue.exe is. No real question here.
Sergey Alexandrovich Kryukov 15-Jun-11 18:34pm
Provide additional info to get an advice.

1 solution

Error code 12 may mean "The access code is invalid" to the system, and it may be the error that Dialogue.exe is returning - but it doesn't have to be. When a program exists it can return any number to the system, where 0 is "OK" and any other value is an error code which may be a system error code, and may be an application error code - it depends on how Dialogue.exe was written. Unfortunately, "Dialogue" is not a standard system program, and so we can't help you fix the problem - we just don't have enough information.

To fix your problem, you need to contact whoever wrote the application, and talk to them about the error, or if that is not possible, find out what it is that Dialogue does, and get it done some other way! Sorry!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900