Please enable JavaScript to view this site.

ESL Documentation

DOSShell Function

Retrieve the last error code.

 

DosGetError()

Parameters

None.

Returns

An integer containing the value of the last error code.

Description

The function helps diagnose issues with the Command Line Interpreter. If the error code is not zero, i.e. DosErrorFree, then your application should record the code, together with the previous command sent to the Command Line Interpreter. If the code is considered non-fatal, then the application can restart the Command Line Interpreter by using the routine, DosStartCmd.