@ECHO OFF
REM
REM   TS-MANAGER BY TCO
REM
REM   Batch Script Example
REM
REM   NOTE: Feel free to modify this Script to your purpose.
REM         Change the Extension of this Script File from ".cmd.txt" to ".cmd"!
REM
SET /A COUNTER=0
REM
REM ------------------------------------------------------------
REM   JOB 1
TS-Manager.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
SET /A Counter=%COUNTER%+%ERRORLEVEL%
REM ------------------------------------------------------------
REM
IF %COUNTER% EQU 0 ECHO  - TS MANAGER successful quited without any Error -
IF %COUNTER% EQU 0 REM - IN THIS LINE YOU CAN PUT A COMMAND OR CALL A BATCH SCRIPT WHICH WILL BE EXECUTED AFTER A SUCCESSFUL RUN, E.G.:  C:\-TS-PATH-\RailWorks.exe
IF %COUNTER% EQU 0 GOTO 1
ECHO  - While Session %COUNTER% Error(s) occured! -
REM - IN THIS LINE YOU CAN PUT A COMMAND OR CALL A BATCH SCRIPT WHICH WILL BE EXECUTED AFTER AT LEAST ONE ERROR OCCURED
:1
PAUSE > NUL
