Hello, I am trying to call error level flag on my .bat file to pause if an error occured, but it doesn't execute the error level..
Here my code
cd C:\ti\ccs1230\ccs\ccs_base\DebugServer\bin
dslite flash -c C:\Users\julioam\ti\CCSTargetConfigurations\Digi1.ccxml -e -f -v "C:\Users\julioam\ti\CCSTargetConfigurations\M1166001_V33607.out" "C:\Users\julioam\ti\CCSTargetConfigurations\M1158001_V34909.out"
if "%errorlevel%" == "1" goto next
else(
echo Operation Failed
pause)
:next
dslite flash -c C:\Users\julioam\ti\CCSTargetConfigurations\Digi2.ccxml -e -f -v "C:\Users\julioam\ti\CCSTargetConfigurations\M1166001_V33607.out" "C:\Users\julioam\ti\CCSTargetConfigurations\M1158001_V34909.out"
if "%errorlevel%" == "1" goto end
else(
echo Operation Failed
pause)
:end
exit