infacmd Return Codes
The infacmd program indicates the success or failure of a command with the following return codes:
- •0 indicates that the command succeeded.
- •-1 indicates that the command failed.
Use the DOS or UNIX echo command immediately after running an infacmd command to see the return code for the command:
- •In a DOS shell: echo %ERRORLEVEL%
- •In a UNIX Bourne or Korn shell: echo $?
- •In a UNIX C shell: echo $status