So, I am running a .bat file that gives multiple inputs at one go and divides 100 by each number and I print the status
division.exe divide-100 -numbers 5,0,10,45
if %ERRORLEVEL% == 0 (
echo Success.
) else (
echo Failed.
)
but it gives the status of only the last input.
Is there a way to get the status for all the inputs???
Like here it is giving "Success".
It should give -
Success
Failed
Success
Success