I have a batch file that runs a richcopy program, I am wanting to monitor the errorlevel so far i have got this
IF (%ERRORLEVEL% == 0) goto OK else IF (%ERRORLEVEL% == 3010) goto Report
:Report
:OK END
What I am wanting to do is to report the error to the event viewer so that it can be monitored via another application that monitors the event logs.