@echo off cd /d C:\dev\AssigmentMonitor npm run build > build_log.txt 2>&1 echo Exit code: %ERRORLEVEL% >> build_log.txt