
AQtime.exe provides the following exit codes which report results of the last profiling run:
| 0 |
The last profiling run did not produce any errors. |
| 1 |
The last profiling run produced errors but the profiled application returned a zero exit code. |
| 2 |
The profiled application returned a non-zero exit code. |
 |
In order for AQTime to produce exit codes indicating profiling results, launch it with the /nonzeroexitcode command-line argument. For more information on AQTime command-line arguments, see AQTime Command Line. |
Exit codes can be used to launch AQTime from a batch file:
Show Sample Batch File Contents
Show Sample Batch File Contents
Hide Sample Batch File Contents
REM Clears the screen
CLS
@ECHO OFF
REM Launches AQtime,
REM performs the profiling
REM and closes AQtime when the profiling is over
"C:\Program Files\SmartBear\AQtime 8\Bin\AQtime.exe" "C:\AQtimeProjects\MyProj.aqt" /run /exit /silentmode /nonzeroexitcode
IF ERRORLEVEL 2 GOTO ApplicationErrors
IF ERRORLEVEL 1 GOTO ProfilingErrors
IF ERRORLEVEL 0 GOTO Success
:ApplicationErrors
ECHO The profiled application returned non-zero exit code
GOTO End
:ProfilingErrors
ECHO There were errors during the profiling
GOTO End
:Success
ECHO No errors
GOTO End
:End
See Also
Automating AQTime
AQTime Command Line