Add a command line option like -SetErrorLevelOnExit, which transfers the ErrorLevel in DOSBox back to the calling process when DOSBox exits. This will enable a call to DOSBox from a batch file to check the result of the last command executed.
Log in to post a comment.