I have one batch job, let's say inventory.bat. This batch job will connect with application specific executable file and while connecting we will pass inputs to application executable based on inputs it will run the application process. Some times if no of records updated inside application is zero it will return warning message.
The executable code is not available and I want to re set the ERRORLEVEL to 0, if output is either warning or info in Batch output.
Batch code
..\\application.exe - update database - systemswitch:autoConvertFile="..\\sourcefilelocation\\filename.txt"
output:
warning: no of updated records :0
some times
Info : no of updated records: 0 Error: invalid data loaded