I have a problem with this code:
for %%n in (%listPath%) do (
echo Starting Build
echo.
devenv %%n /build Debug
if ERRORLEVEL 1 (
echo [101;93m ERROR: Error Build Project: %%n [0m
pause > nul
exit /b
)
)
Why does the line echo [101;93m ERROR: Error Build Project: %%n [0m
work only outside the if
statement? I want to display a red error inside the if
.