1@ECHO OFF 2 3ECHO INFO: Cleaning %CD%... 4 5ECHO INFO: Cleaning ThreadX_Library... 6DEL out.txt 2> NUL 7START /wait %AZRTOS_KEIL_UV% -j0 -c ThreadX_Library.uvprojx -o out.txt 8IF %ERRORLEVEL% GEQ 2 GOTO CLEAN_ERROR 9TYPE out.txt 2> NUL 10 11ECHO INFO: Cleaning ThreadX_Demo... 12DEL out.txt 2> NUL 13START /wait %AZRTOS_KEIL_UV% -j0 -c ThreadX_Demo.uvprojx -o out.txt 14IF %ERRORLEVEL% GEQ 2 GOTO CLEAN_ERROR 15TYPE out.txt 2> NUL 16 17DEL out.txt 2> NUL 18ECHO INFO: Cleaning completed successfully! 19EXIT /B 0 20 21:CLEAN_ERROR 22TYPE out.txt 2> NUL 23ECHO ERROR: clean failed. 24EXIT /B 1 25