For VBP itself, see
http://www.visualbuild.com/Manual/consoleapp.htm
http://www.visualbuild.com/Manual/command_linegui.htm
There is no standard exit code for applications in general (other than 0 is typically success and non-zero is typically failure); you would need to consult the documentation for each program to determine that.