Batch file writing to log then ending process
- by Andrew Service
I have a batch file that calls a process and in that process I have:
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
Now I wanted to upgrade this a bit and give some meaningful message to an output log when if the process fails, also I do not want the main batch to continue processing because the next processes are dependent on data from previous…